Struct borsh::schema::BorshSchemaContainer [−][src]
All schema information needed to deserialize a single type.
Fields
declaration: Declaration
Declaration of the type.
definitions: HashMap<Declaration, Definition>
All definitions needed to deserialize the given type.
Trait Implementations
impl BorshDeserialize for BorshSchemaContainer where
Declaration: BorshDeserialize,
HashMap<Declaration, Definition>: BorshDeserialize,
[src]
Declaration: BorshDeserialize,
HashMap<Declaration, Definition>: BorshDeserialize,
fn deserialize(buf: &mut &[u8]) -> Result<Self, Error>
[src]
fn try_from_slice(v: &[u8]) -> Result<Self>
[src]
fn is_u8() -> bool
[src]
impl BorshSchema for BorshSchemaContainer where
Declaration: BorshSchema,
HashMap<Declaration, Definition>: BorshSchema,
[src]
Declaration: BorshSchema,
HashMap<Declaration, Definition>: BorshSchema,
fn declaration() -> Declaration
[src]
fn add_definitions_recursively(
definitions: &mut HashMap<Declaration, Definition>
)
[src]
definitions: &mut HashMap<Declaration, Definition>
)
fn add_definition(
declaration: Declaration,
definition: Definition,
definitions: &mut HashMap<Declaration, Definition>
)
[src]
declaration: Declaration,
definition: Definition,
definitions: &mut HashMap<Declaration, Definition>
)
fn schema_container() -> BorshSchemaContainer
[src]
impl BorshSerialize for BorshSchemaContainer where
Declaration: BorshSerialize,
HashMap<Declaration, Definition>: BorshSerialize,
[src]
Declaration: BorshSerialize,
HashMap<Declaration, Definition>: BorshSerialize,
fn serialize<W: Write>(&self, writer: &mut W) -> Result<(), Error>
[src]
fn try_to_vec(&self) -> Result<Vec<u8>>
[src]
fn is_u8() -> bool
[src]
impl Debug for BorshSchemaContainer
[src]
impl PartialEq<BorshSchemaContainer> for BorshSchemaContainer
[src]
fn eq(&self, other: &BorshSchemaContainer) -> bool
[src]
fn ne(&self, other: &BorshSchemaContainer) -> bool
[src]
impl StructuralPartialEq for BorshSchemaContainer
[src]
Auto Trait Implementations
impl RefUnwindSafe for BorshSchemaContainer
impl Send for BorshSchemaContainer
impl Sync for BorshSchemaContainer
impl Unpin for BorshSchemaContainer
impl UnwindSafe for BorshSchemaContainer
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut Tⓘ
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,