pub struct AccountWithOptionalTokenDataV2 {
pub account: Box<AccountV2>,
pub optional_token_data: Option<Box<TokenData>>,
}
Fields§
§account: Box<AccountV2>
§optional_token_data: Option<Box<TokenData>>
Implementations§
Source§impl AccountWithOptionalTokenDataV2
impl AccountWithOptionalTokenDataV2
pub fn new(account: AccountV2) -> AccountWithOptionalTokenDataV2
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 Default for AccountWithOptionalTokenDataV2
impl Default for AccountWithOptionalTokenDataV2
Source§fn default() -> AccountWithOptionalTokenDataV2
fn default() -> AccountWithOptionalTokenDataV2
Returns the “default value” for a type. Read more
Source§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 PartialEq for AccountWithOptionalTokenDataV2
impl PartialEq for AccountWithOptionalTokenDataV2
Source§fn eq(&self, other: &AccountWithOptionalTokenDataV2) -> bool
fn eq(&self, other: &AccountWithOptionalTokenDataV2) -> bool
Tests for
self
and other
values to be equal, and is used by ==
.impl StructuralPartialEq for AccountWithOptionalTokenDataV2
Auto Trait Implementations§
impl Freeze for AccountWithOptionalTokenDataV2
impl RefUnwindSafe for AccountWithOptionalTokenDataV2
impl Send for AccountWithOptionalTokenDataV2
impl Sync for AccountWithOptionalTokenDataV2
impl Unpin 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