Skip to main content

BorshSchemaAs

Trait BorshSchemaAs 

Source
pub trait BorshSchemaAs<T: ?Sized> {
    // Required methods
    fn declaration_as() -> Declaration;
    fn add_definitions_recursively_as(
        definitions: &mut BTreeMap<Declaration, Definition>,
    );
}

Required Methods§

Source

fn declaration_as() -> Declaration

Source

fn add_definitions_recursively_as( definitions: &mut BTreeMap<Declaration, Definition>, )

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

Source§

impl<I> BorshSchemaAs<Duration> for DurationMicroSeconds<I>
where I: BorshSchema,

Source§

impl<I> BorshSchemaAs<Duration> for DurationMilliSeconds<I>
where I: BorshSchema,

Source§

impl<I> BorshSchemaAs<Duration> for DurationNanoSeconds<I>
where I: BorshSchema,

Source§

impl<I> BorshSchemaAs<Duration> for DurationSeconds<I>
where I: BorshSchema,