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§
source§impl Clone for AbiBorshParameter
impl Clone for AbiBorshParameter
source§fn clone(&self) -> AbiBorshParameter
fn clone(&self) -> AbiBorshParameter
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for AbiBorshParameter
impl Debug for AbiBorshParameter
source§impl<'de> Deserialize<'de> for AbiBorshParameter
impl<'de> Deserialize<'de> for AbiBorshParameter
source§fn 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
source§impl JsonSchema for AbiBorshParameter
impl JsonSchema for AbiBorshParameter
source§fn schema_name() -> String
fn schema_name() -> String
The name of the generated JSON Schema. Read more
source§fn json_schema(gen: &mut SchemaGenerator) -> Schema
fn json_schema(gen: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
source§fn 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 moresource§impl PartialEq for AbiBorshParameter
impl PartialEq for AbiBorshParameter
source§fn eq(&self, other: &AbiBorshParameter) -> bool
fn eq(&self, other: &AbiBorshParameter) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for AbiBorshParameter
impl Serialize for AbiBorshParameter
impl StructuralPartialEq for AbiBorshParameter
Auto Trait Implementations§
impl Freeze for AbiBorshParameter
impl RefUnwindSafe for AbiBorshParameter
impl Send for AbiBorshParameter
impl Sync for AbiBorshParameter
impl Unpin for AbiBorshParameter
impl UnwindSafe for AbiBorshParameter
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