pub struct Struct<L: LinkingScheme> {
pub type_name: String,
pub template: Option<String>,
pub peekable: bool,
pub fields: Vec<NamedField<L>>,
}Fields§
§type_name: String§template: Option<String>§peekable: bool§fields: Vec<NamedField<L>>Trait Implementations§
Source§impl<L> BorshDeserialize for Struct<L>where
L: BorshDeserialize + LinkingScheme,
impl<L> BorshDeserialize for Struct<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 Struct<L>where
L: BorshSerialize + LinkingScheme,
impl<L> BorshSerialize for Struct<L>where
L: BorshSerialize + LinkingScheme,
Source§impl<L: LinkingScheme> From<Struct<L>> for StructWithSerde<L>
impl<L: LinkingScheme> From<Struct<L>> for StructWithSerde<L>
Source§impl<L: LinkingScheme> From<StructWithSerde<L>> for Struct<L>
impl<L: LinkingScheme> From<StructWithSerde<L>> for Struct<L>
Source§fn from(value: StructWithSerde<L>) -> Self
fn from(value: StructWithSerde<L>) -> Self
Converts to this type from the input type.
impl<L: Eq + LinkingScheme> Eq for Struct<L>
impl<L: LinkingScheme> StructuralPartialEq for Struct<L>
Auto Trait Implementations§
impl<L> Freeze for Struct<L>
impl<L> RefUnwindSafe for Struct<L>
impl<L> Send for Struct<L>
impl<L> Sync for Struct<L>
impl<L> Unpin for Struct<L>
impl<L> UnsafeUnpin for Struct<L>
impl<L> UnwindSafe for Struct<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