Struct treasury_import::AssetId
source · [−]#[repr(transparent)]pub struct AssetId(_);Expand description
64-bit id value. FFI-safe.
Implementations
Trait Implementations
sourceimpl<'de> Deserialize<'de> for AssetId
impl<'de> Deserialize<'de> for AssetId
sourcepub fn deserialize<D>(
deserializer: D
) -> Result<AssetId, <D as Deserializer<'de>>::Error> where
D: Deserializer<'de>,
pub fn deserialize<D>(
deserializer: D
) -> Result<AssetId, <D as Deserializer<'de>>::Error> where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
sourceimpl From<NonZeroU64> for AssetId
impl From<NonZeroU64> for AssetId
sourcepub fn from(value: NonZeroU64) -> AssetId
pub fn from(value: NonZeroU64) -> AssetId
Performs the conversion.
sourceimpl FromStr for AssetId
impl FromStr for AssetId
type Err = ParseAssetIdError
type Err = ParseAssetIdError
The associated error which can be returned from parsing.
sourceimpl Ord for AssetId
impl Ord for AssetId
sourceimpl PartialOrd<AssetId> for AssetId
impl PartialOrd<AssetId> for AssetId
sourcepub fn partial_cmp(&self, other: &AssetId) -> Option<Ordering>
pub fn partial_cmp(&self, other: &AssetId) -> Option<Ordering>
This method returns an ordering between self and other values if one exists. Read more
1.0.0 · sourcefn lt(&self, other: &Rhs) -> bool
fn lt(&self, other: &Rhs) -> bool
This method tests less than (for self and other) and is used by the < operator. Read more
1.0.0 · sourcefn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for self and other) and is used by the <=
operator. Read more
sourceimpl Serialize for AssetId
impl Serialize for AssetId
sourcepub fn serialize<S>(
&self,
serializer: S
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error> where
S: Serializer,
pub fn serialize<S>(
&self,
serializer: S
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error> where
S: Serializer,
Serialize this value into the given Serde serializer. Read more
sourceimpl TryFrom<u64> for AssetId
impl TryFrom<u64> for AssetId
type Error = ZeroIDError
type Error = ZeroIDError
The type returned in the event of a conversion error.
impl Copy for AssetId
impl Eq for AssetId
impl StructuralEq for AssetId
impl StructuralPartialEq for AssetId
Auto Trait Implementations
impl RefUnwindSafe for AssetId
impl Send for AssetId
impl Sync for AssetId
impl Unpin for AssetId
impl UnwindSafe for AssetId
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcepub fn to_owned(&self) -> T
pub fn to_owned(&self) -> T
Creates owned data from borrowed data, usually by cloning. Read more
sourcepub fn clone_into(&self, target: &mut T)
pub fn clone_into(&self, target: &mut T)
toowned_clone_into)Uses borrowed data to replace owned data, usually by cloning. Read more