pub struct GasKeyInfo {
pub balance: NearToken,
pub num_nonces: u16,
}Expand description
Gas key information.
Gas keys are access keys with a prepaid balance to pay for gas costs.
Fields§
§balance: NearTokenPrepaid gas balance in yoctoNEAR.
num_nonces: u16Number of nonces allocated for this gas key.
Trait Implementations§
Source§impl BorshDeserialize for GasKeyInfo
impl BorshDeserialize for GasKeyInfo
fn deserialize_reader<__R: Read>(reader: &mut __R) -> Result<Self, Error>
Source§fn deserialize(buf: &mut &[u8]) -> Result<Self, Error>
fn deserialize(buf: &mut &[u8]) -> Result<Self, Error>
Deserializes this instance from a given slice of bytes.
Updates the buffer to point at the remaining bytes.
Source§fn try_from_slice(v: &[u8]) -> Result<Self, Error>
fn try_from_slice(v: &[u8]) -> Result<Self, Error>
Deserialize this instance from a slice of bytes.
fn try_from_reader<R>(reader: &mut R) -> Result<Self, Error>where
R: Read,
Source§impl BorshSerialize for GasKeyInfo
impl BorshSerialize for GasKeyInfo
Source§impl Clone for GasKeyInfo
impl Clone for GasKeyInfo
Source§fn clone(&self) -> GasKeyInfo
fn clone(&self) -> GasKeyInfo
Returns a duplicate 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 GasKeyInfo
impl Debug for GasKeyInfo
Source§impl<'de> Deserialize<'de> for GasKeyInfo
impl<'de> Deserialize<'de> for GasKeyInfo
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 Hash for GasKeyInfo
impl Hash for GasKeyInfo
Source§impl PartialEq for GasKeyInfo
impl PartialEq for GasKeyInfo
Source§impl Serialize for GasKeyInfo
impl Serialize for GasKeyInfo
impl Eq for GasKeyInfo
impl StructuralPartialEq for GasKeyInfo
Auto Trait Implementations§
impl Freeze for GasKeyInfo
impl RefUnwindSafe for GasKeyInfo
impl Send for GasKeyInfo
impl Sync for GasKeyInfo
impl Unpin for GasKeyInfo
impl UnsafeUnpin for GasKeyInfo
impl UnwindSafe for GasKeyInfo
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.