Struct near_sdk::Gas [−][src]
#[repr(transparent)]pub struct Gas(pub u64);
Expand description
Represents the amount of NEAR tokens in “gas units” which are used to fund transactions.
Tuple Fields
0: u64
Implementations
Trait Implementations
Performs the +=
operation. Read more
Get the name of the type without brackets.
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. Read more
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.
Deserialize this value from the given Serde deserializer. Read more
This method returns an ordering between self
and other
values if one exists. Read more
This method tests less than (for self
and other
) and is used by the <
operator. Read more
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
Performs the -=
operation. Read more
Auto Trait Implementations
impl RefUnwindSafe for Gas
impl UnwindSafe for Gas
Blanket Implementations
Mutably borrows from an owned value. Read more
Compare self to key
and return true
if they are equal.