pub struct Tuple<L: LinkingScheme> {
pub type_name: Option<String>,
pub template: Option<String>,
pub peekable: bool,
pub fields: Vec<UnnamedField<L>>,
}Fields§
§type_name: Option<String>The name of the tuple struct (e.g. newtype) this type was derived from, if any. None for
plain anonymous tuples and for the virtual tuples representing enum variant contents.
Purely informational: visitors deliberately ignore it to keep display output, JSON parsing and EIP-712 encodings identical to those of an anonymous tuple.
template: Option<String>§peekable: bool§fields: Vec<UnnamedField<L>>Trait Implementations§
Source§impl<L> BorshDeserialize for Tuple<L>where
L: BorshDeserialize + LinkingScheme,
impl<L> BorshDeserialize for Tuple<L>where
L: BorshDeserialize + LinkingScheme,
fn deserialize_reader<__R: Read>(reader: &mut __R) -> Result<Self, Error>
Source§fn deserialize(buf: &mut &[u8]) -> Result<Self, Error>
fn deserialize(buf: &mut &[u8]) -> Result<Self, Error>
Deserializes this instance from a given slice of bytes.
Updates the buffer to point at the remaining bytes.
Source§fn try_from_slice(v: &[u8]) -> Result<Self, Error>
fn try_from_slice(v: &[u8]) -> Result<Self, Error>
Deserialize this instance from a slice of bytes.
fn try_from_reader<R>(reader: &mut R) -> Result<Self, Error>where
R: Read,
Source§impl<L> BorshSerialize for Tuple<L>where
L: BorshSerialize + LinkingScheme,
impl<L> BorshSerialize for Tuple<L>where
L: BorshSerialize + LinkingScheme,
impl<L: Eq + LinkingScheme> Eq for Tuple<L>
impl<L: PartialEq + LinkingScheme> StructuralPartialEq for Tuple<L>
Auto Trait Implementations§
impl<L> Freeze for Tuple<L>
impl<L> RefUnwindSafe for Tuple<L>
impl<L> Send for Tuple<L>
impl<L> Sync for Tuple<L>
impl<L> Unpin for Tuple<L>
impl<L> UnsafeUnpin for Tuple<L>
impl<L> UnwindSafe for Tuple<L>
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