pub struct ServiceRequestInfo {Show 13 fields
pub request_id: u64,
pub blueprint_id: u64,
pub requester: Address,
pub created_at: u64,
pub ttl: u64,
pub operator_count: u32,
pub approval_count: u32,
pub payment_token: Address,
pub payment_amount: U256,
pub membership: MembershipModel,
pub min_operators: u32,
pub max_operators: u32,
pub rejected: bool,
}Expand description
Details about a service request stored on-chain.
Fields§
§request_id: u64Request identifier.
blueprint_id: u64Blueprint being requested.
requester: AddressAddress that created the request.
created_at: u64Block timestamp when request was created.
ttl: u64Request time-to-live in blocks.
operator_count: u32Number of operators requested.
approval_count: u32Number of approvals the request has received.
payment_token: AddressERC-20 token used for payment (zero address for ETH).
payment_amount: U256Payment amount for the request.
membership: MembershipModelMembership model requested.
min_operators: u32Minimum operators allowed.
max_operators: u32Maximum operators allowed.
rejected: boolWhether the request has been rejected.
Trait Implementations§
Source§impl Clone for ServiceRequestInfo
impl Clone for ServiceRequestInfo
Source§fn clone(&self) -> ServiceRequestInfo
fn clone(&self) -> ServiceRequestInfo
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for ServiceRequestInfo
impl RefUnwindSafe for ServiceRequestInfo
impl Send for ServiceRequestInfo
impl Sync for ServiceRequestInfo
impl Unpin for ServiceRequestInfo
impl UnsafeUnpin for ServiceRequestInfo
impl UnwindSafe for ServiceRequestInfo
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more