#[repr(transparent)]pub struct DurationNs(pub u64);Tuple Fields§
§0: u64Implementations§
Trait Implementations§
Source§impl BorshDeserialize for DurationNs
impl BorshDeserialize for DurationNs
fn deserialize_reader<__R: Read>(reader: &mut __R) -> Result<Self, Error>
§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.
§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 BorshSchema for DurationNs
impl BorshSchema for DurationNs
Source§fn declaration() -> Declaration
fn declaration() -> Declaration
Get the name of the type without brackets.
Source§fn add_definitions_recursively(
definitions: &mut BTreeMap<Declaration, Definition>,
)
fn add_definitions_recursively( definitions: &mut BTreeMap<Declaration, Definition>, )
Recursively, using DFS, add type definitions required for this type.
Type definition partially explains how to serialize/deserialize a type.
Source§impl BorshSerialize for DurationNs
impl BorshSerialize for DurationNs
Source§impl Clone for DurationNs
impl Clone for DurationNs
Source§fn clone(&self) -> DurationNs
fn clone(&self) -> DurationNs
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 DurationNs
impl Debug for DurationNs
Source§impl Default for DurationNs
impl Default for DurationNs
Source§fn default() -> DurationNs
fn default() -> DurationNs
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for DurationNs
impl<'de> Deserialize<'de> for DurationNs
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 Display for DurationNs
impl Display for DurationNs
Source§impl From<DurationNs> for u64
impl From<DurationNs> for u64
Source§fn from(value: DurationNs) -> Self
fn from(value: DurationNs) -> Self
Converts to this type from the input type.
Source§impl From<u64> for DurationNs
impl From<u64> for DurationNs
Source§impl Hash for DurationNs
impl Hash for DurationNs
Source§impl JsonSchema for DurationNs
impl JsonSchema for DurationNs
Source§fn schema_name() -> String
fn schema_name() -> String
The name of the generated JSON Schema. Read more
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
§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 Ord for DurationNs
impl Ord for DurationNs
Source§fn cmp(&self, other: &DurationNs) -> Ordering
fn cmp(&self, other: &DurationNs) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for DurationNs
impl PartialEq for DurationNs
Source§impl PartialOrd for DurationNs
impl PartialOrd for DurationNs
Source§impl Serialize for DurationNs
impl Serialize for DurationNs
impl Copy for DurationNs
impl Eq for DurationNs
impl StructuralPartialEq for DurationNs
Auto Trait Implementations§
impl Freeze for DurationNs
impl RefUnwindSafe for DurationNs
impl Send for DurationNs
impl Sync for DurationNs
impl Unpin for DurationNs
impl UnwindSafe for DurationNs
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,
§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.