pub struct PrepareUserOperationBody {
pub calls: Vec<EvmCall>,
pub network: EvmUserOperationNetwork,
pub paymaster_url: Option<String>,
}
Expand description
PrepareUserOperationBody
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>"
],
"type": "string"
}
}
}
Fields§
§calls: Vec<EvmCall>
The list of calls to make from the Smart Account.
network: EvmUserOperationNetwork
§paymaster_url: Option<String>
The URL of the paymaster to use for the user operation.
Implementations§
Source§impl PrepareUserOperationBody
impl PrepareUserOperationBody
pub fn builder() -> PrepareUserOperationBody
Trait Implementations§
Source§impl Clone for PrepareUserOperationBody
impl Clone for PrepareUserOperationBody
Source§fn clone(&self) -> PrepareUserOperationBody
fn clone(&self) -> PrepareUserOperationBody
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 Debug for PrepareUserOperationBody
impl Debug for PrepareUserOperationBody
Source§impl<'de> Deserialize<'de> for PrepareUserOperationBody
impl<'de> Deserialize<'de> for PrepareUserOperationBody
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<&PrepareUserOperationBody> for PrepareUserOperationBody
impl From<&PrepareUserOperationBody> for PrepareUserOperationBody
Source§fn from(value: &PrepareUserOperationBody) -> Self
fn from(value: &PrepareUserOperationBody) -> Self
Converts to this type from the input type.
Source§impl From<PrepareUserOperationBody> for PrepareUserOperationBody
impl From<PrepareUserOperationBody> for PrepareUserOperationBody
Source§fn from(value: PrepareUserOperationBody) -> Self
fn from(value: PrepareUserOperationBody) -> Self
Converts to this type from the input type.
Source§impl Serialize for PrepareUserOperationBody
impl Serialize for PrepareUserOperationBody
Source§impl TryFrom<PrepareUserOperationBody> for PrepareUserOperationBody
impl TryFrom<PrepareUserOperationBody> for PrepareUserOperationBody
Source§type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
Source§fn try_from(value: PrepareUserOperationBody) -> Result<Self, ConversionError>
fn try_from(value: PrepareUserOperationBody) -> Result<Self, ConversionError>
Performs the conversion.
Auto Trait Implementations§
impl Freeze for PrepareUserOperationBody
impl RefUnwindSafe for PrepareUserOperationBody
impl Send for PrepareUserOperationBody
impl Sync for PrepareUserOperationBody
impl Unpin for PrepareUserOperationBody
impl UnwindSafe for PrepareUserOperationBody
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