pub struct ServiceRequestParams {
pub blueprint_id: u64,
pub operators: Vec<Address>,
pub operator_exposures: Option<Vec<u16>>,
pub permitted_callers: Vec<Address>,
pub config: Bytes,
pub ttl: u64,
pub payment_token: Address,
pub payment_amount: U256,
pub security_requirements: Vec<AssetSecurityRequirement>,
}Expand description
Parameters for submitting a new service request.
Fields§
§blueprint_id: u64Blueprint being requested.
operators: Vec<Address>Candidate operators for the service.
operator_exposures: Option<Vec<u16>>Optional exposure (in basis points) for each operator.
permitted_callers: Vec<Address>Additional permitted callers (beyond the requester).
config: BytesArbitrary configuration blob expected by the blueprint manager.
ttl: u64Time-to-live in blocks.
payment_token: AddressPayment token (zero address for ETH).
payment_amount: U256Payment amount.
security_requirements: Vec<AssetSecurityRequirement>Optional security requirements (falls back to simple exposure flow when empty).
Implementations§
Trait Implementations§
Source§impl Clone for ServiceRequestParams
impl Clone for ServiceRequestParams
Source§fn clone(&self) -> ServiceRequestParams
fn clone(&self) -> ServiceRequestParams
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 ServiceRequestParams
impl RefUnwindSafe for ServiceRequestParams
impl Send for ServiceRequestParams
impl Sync for ServiceRequestParams
impl Unpin for ServiceRequestParams
impl UnsafeUnpin for ServiceRequestParams
impl UnwindSafe for ServiceRequestParams
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