pub struct AccountWithOptionalTokenDataV2 {
pub account: AccountV2,
pub optional_token_data: Option<TokenData>,
}Expand description
AccountWithOptionalTokenDataV2
JSON schema
{
"type": "object",
"required": [
"account"
],
"properties": {
"account": {
"$ref": "#/components/schemas/AccountV2"
},
"optionalTokenData": {
"$ref": "#/components/schemas/TokenData"
}
},
"additionalProperties": false
}Fields§
§account: AccountV2§optional_token_data: Option<TokenData>Implementations§
Trait Implementations§
Source§impl Clone for AccountWithOptionalTokenDataV2
impl Clone for AccountWithOptionalTokenDataV2
Source§fn clone(&self) -> AccountWithOptionalTokenDataV2
fn clone(&self) -> AccountWithOptionalTokenDataV2
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 AccountWithOptionalTokenDataV2
impl<'de> Deserialize<'de> for AccountWithOptionalTokenDataV2
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<AccountWithOptionalTokenDataV2> for AccountWithOptionalTokenDataV2
impl From<AccountWithOptionalTokenDataV2> for AccountWithOptionalTokenDataV2
Source§fn from(value: AccountWithOptionalTokenDataV2) -> Self
fn from(value: AccountWithOptionalTokenDataV2) -> Self
Converts to this type from the input type.
Source§impl TryFrom<AccountWithOptionalTokenDataV2> for AccountWithOptionalTokenDataV2
impl TryFrom<AccountWithOptionalTokenDataV2> for AccountWithOptionalTokenDataV2
Source§type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
Source§fn try_from(
value: AccountWithOptionalTokenDataV2,
) -> Result<Self, ConversionError>
fn try_from( value: AccountWithOptionalTokenDataV2, ) -> Result<Self, ConversionError>
Performs the conversion.
Auto Trait Implementations§
impl Freeze for AccountWithOptionalTokenDataV2
impl RefUnwindSafe for AccountWithOptionalTokenDataV2
impl Send for AccountWithOptionalTokenDataV2
impl Sync for AccountWithOptionalTokenDataV2
impl Unpin for AccountWithOptionalTokenDataV2
impl UnsafeUnpin for AccountWithOptionalTokenDataV2
impl UnwindSafe for AccountWithOptionalTokenDataV2
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