Struct near_abi::AbiBorshParameter
source · pub struct AbiBorshParameter {
pub name: String,
pub type_schema: BorshSchemaContainer,
}
Expand description
Information about a single named Borsh function parameter.
Fields
name: String
Parameter name (e.g. p1
in fn foo(p1: u32) {}
).
type_schema: BorshSchemaContainer
Inline Borsh schema that represents this type.
Trait Implementations
sourceimpl Clone for AbiBorshParameter
impl Clone for AbiBorshParameter
sourceimpl Debug for AbiBorshParameter
impl Debug for AbiBorshParameter
sourceimpl<'de> Deserialize<'de> for AbiBorshParameter
impl<'de> Deserialize<'de> for AbiBorshParameter
sourcefn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
sourceimpl JsonSchema for AbiBorshParameter
impl JsonSchema for AbiBorshParameter
sourcefn schema_name() -> String
fn schema_name() -> String
The name of the generated JSON Schema. Read more
sourcefn json_schema(gen: &mut SchemaGenerator) -> Schema
fn json_schema(gen: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
sourcefn is_referenceable() -> bool
fn is_referenceable() -> bool
Whether JSON Schemas generated for this type should be re-used where possible using the
$ref
keyword. Read moresourceimpl PartialEq<AbiBorshParameter> for AbiBorshParameter
impl PartialEq<AbiBorshParameter> for AbiBorshParameter
sourcefn eq(&self, other: &AbiBorshParameter) -> bool
fn eq(&self, other: &AbiBorshParameter) -> bool
sourceimpl Serialize for AbiBorshParameter
impl Serialize for AbiBorshParameter
impl StructuralPartialEq for AbiBorshParameter
Auto Trait Implementations
impl RefUnwindSafe for AbiBorshParameter
impl Send for AbiBorshParameter
impl Sync for AbiBorshParameter
impl Unpin for AbiBorshParameter
impl UnwindSafe for AbiBorshParameter
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more