Struct spl_record::state::Data
source · pub struct Data {
pub bytes: [u8; 8],
}Expand description
Struct just for data
Fields§
§bytes: [u8; 8]The data contained by the account, could be anything or serializable
Implementations§
Trait Implementations§
source§impl BorshDeserialize for Datawhere
[u8; 8]: BorshDeserialize,
impl BorshDeserialize for Datawhere [u8; 8]: BorshDeserialize,
source§impl BorshSchema for Datawhere
[u8; 8]: BorshSchema,
impl BorshSchema for Datawhere [u8; 8]: BorshSchema,
source§fn declaration() -> Declaration
fn declaration() -> Declaration
Get the name of the type without brackets.
source§fn add_definitions_recursively(
definitions: &mut HashMap<Declaration, Definition>
)
fn add_definitions_recursively( definitions: &mut HashMap<Declaration, Definition> )
Recursively, using DFS, add type definitions required for this type. For primitive types
this is an empty map. Type definition explains how to serialize/deserialize a type.
source§fn add_definition(
declaration: String,
definition: Definition,
definitions: &mut HashMap<String, Definition, RandomState>
)
fn add_definition( declaration: String, definition: Definition, definitions: &mut HashMap<String, Definition, RandomState> )
Helper method to add a single type definition to the map.
fn schema_container() -> BorshSchemaContainer
source§impl BorshSerialize for Datawhere
[u8; 8]: BorshSerialize,
impl BorshSerialize for Datawhere [u8; 8]: BorshSerialize,
source§impl PartialEq<Data> for Data
impl PartialEq<Data> for Data
impl StructuralPartialEq for Data
Auto Trait Implementations§
impl RefUnwindSafe for Data
impl Send for Data
impl Sync for Data
impl Unpin for Data
impl UnwindSafe for Data
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