pub struct DivisibleAssetSpec {
pub naming: AssetNaming,
pub precision: Precision,
}
Fields§
§naming: AssetNaming
§precision: Precision
Implementations§
Source§impl DivisibleAssetSpec
impl DivisibleAssetSpec
pub fn new( ticker: &'static str, name: &'static str, precision: Precision, ) -> DivisibleAssetSpec
pub fn with( ticker: &str, name: &str, precision: Precision, details: Option<&str>, ) -> Result<DivisibleAssetSpec, InvalidIdent>
pub fn from_strict_val_unchecked(value: &StrictVal) -> Self
pub fn ticker(&self) -> &str
pub fn name(&self) -> &str
pub fn details(&self) -> Option<&str>
Trait Implementations§
Source§impl Clone for DivisibleAssetSpec
impl Clone for DivisibleAssetSpec
Source§fn clone(&self) -> DivisibleAssetSpec
fn clone(&self) -> DivisibleAssetSpec
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 DivisibleAssetSpec
impl Debug for DivisibleAssetSpec
Source§impl<'de> Deserialize<'de> for DivisibleAssetSpec
impl<'de> Deserialize<'de> for DivisibleAssetSpec
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 PartialEq for DivisibleAssetSpec
impl PartialEq for DivisibleAssetSpec
Source§impl Serialize for DivisibleAssetSpec
impl Serialize for DivisibleAssetSpec
Source§impl StrictDecode for DivisibleAssetSpec
impl StrictDecode for DivisibleAssetSpec
fn strict_decode(reader: &mut impl TypedRead) -> Result<Self, DecodeError>
fn strict_read(lim: usize, reader: impl Read) -> Result<Self, DecodeError>
Source§impl StrictDeserialize for DivisibleAssetSpec
impl StrictDeserialize for DivisibleAssetSpec
fn from_strict_serialized<const MAX: usize>( ast_data: Confined<Vec<u8>, 0, MAX>, ) -> Result<Self, DeserializeError>
fn strict_deserialize_from_file<const MAX: usize>( path: impl AsRef<Path>, ) -> Result<Self, DeserializeError>
Source§impl StrictDumb for DivisibleAssetSpec
impl StrictDumb for DivisibleAssetSpec
fn strict_dumb() -> Self
Source§impl StrictEncode for DivisibleAssetSpec
impl StrictEncode for DivisibleAssetSpec
fn strict_encode<W: TypedWrite>(&self, writer: W) -> Result<W>
fn strict_write(&self, lim: usize, writer: impl Write) -> Result<usize, Error>
Source§impl StrictSerialize for DivisibleAssetSpec
impl StrictSerialize for DivisibleAssetSpec
fn strict_serialized_len(&self) -> Result<usize, Error>
fn to_strict_serialized<const MAX: usize>( &self, ) -> Result<Confined<Vec<u8>, 0, MAX>, SerializeError>
fn strict_serialize_to_file<const MAX: usize>( &self, path: impl AsRef<Path>, ) -> Result<(), SerializeError>
Source§impl StrictStruct for DivisibleAssetSpec
impl StrictStruct for DivisibleAssetSpec
const ALL_FIELDS: &'static [&'static str]
fn strict_check_fields()
fn strict_type_info() -> TypeInfo<Self>
Source§impl StrictType for DivisibleAssetSpec
impl StrictType for DivisibleAssetSpec
const STRICT_LIB_NAME: &'static str = LIB_NAME_RGB_CONTRACT
fn strict_name() -> Option<TypeName>
impl Eq for DivisibleAssetSpec
impl StrictProduct for DivisibleAssetSpec
impl StructuralPartialEq for DivisibleAssetSpec
Auto Trait Implementations§
impl Freeze for DivisibleAssetSpec
impl RefUnwindSafe for DivisibleAssetSpec
impl Send for DivisibleAssetSpec
impl Sync for DivisibleAssetSpec
impl Unpin for DivisibleAssetSpec
impl UnwindSafe for DivisibleAssetSpec
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.