pub struct PrepareAndSendUserOperationBody {
pub calls: Vec<EvmCall>,
pub network: EvmUserOperationNetwork,
pub paymaster_url: Option<Url>,
}Expand description
PrepareAndSendUserOperationBody
JSON schema
{
"type": "object",
"required": [
"calls",
"network"
],
"properties": {
"calls": {
"description": "The list of calls to make from the Smart Account.",
"type": "array",
"items": {
"$ref": "#/components/schemas/EvmCall"
}
},
"network": {
"$ref": "#/components/schemas/EvmUserOperationNetwork"
},
"paymasterUrl": {
"description": "The URL of the paymaster to use for the user operation.",
"examples": [
"https://api.developer.coinbase.com/rpc/v1/base/<token>"
],
"allOf": [
{
"$ref": "#/components/schemas/Url"
}
]
}
}
}Fields§
§calls: Vec<EvmCall>The list of calls to make from the Smart Account.
network: EvmUserOperationNetwork§paymaster_url: Option<Url>The URL of the paymaster to use for the user operation.
Implementations§
Trait Implementations§
Source§impl Clone for PrepareAndSendUserOperationBody
impl Clone for PrepareAndSendUserOperationBody
Source§fn clone(&self) -> PrepareAndSendUserOperationBody
fn clone(&self) -> PrepareAndSendUserOperationBody
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 moreSource§impl<'de> Deserialize<'de> for PrepareAndSendUserOperationBody
impl<'de> Deserialize<'de> for PrepareAndSendUserOperationBody
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl From<&PrepareAndSendUserOperationBody> for PrepareAndSendUserOperationBody
impl From<&PrepareAndSendUserOperationBody> for PrepareAndSendUserOperationBody
Source§fn from(value: &PrepareAndSendUserOperationBody) -> Self
fn from(value: &PrepareAndSendUserOperationBody) -> Self
Converts to this type from the input type.
Source§impl From<PrepareAndSendUserOperationBody> for PrepareAndSendUserOperationBody
impl From<PrepareAndSendUserOperationBody> for PrepareAndSendUserOperationBody
Source§fn from(value: PrepareAndSendUserOperationBody) -> Self
fn from(value: PrepareAndSendUserOperationBody) -> Self
Converts to this type from the input type.
Source§impl TryFrom<PrepareAndSendUserOperationBody> for PrepareAndSendUserOperationBody
impl TryFrom<PrepareAndSendUserOperationBody> for PrepareAndSendUserOperationBody
Source§type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
Source§fn try_from(
value: PrepareAndSendUserOperationBody,
) -> Result<Self, ConversionError>
fn try_from( value: PrepareAndSendUserOperationBody, ) -> Result<Self, ConversionError>
Performs the conversion.
Auto Trait Implementations§
impl Freeze for PrepareAndSendUserOperationBody
impl RefUnwindSafe for PrepareAndSendUserOperationBody
impl Send for PrepareAndSendUserOperationBody
impl Sync for PrepareAndSendUserOperationBody
impl Unpin for PrepareAndSendUserOperationBody
impl UnwindSafe for PrepareAndSendUserOperationBody
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