pub struct ConsignmentId(/* private fields */);
Expand description
Consignment identifier.
Implementations§
Source§impl ConsignmentId
impl ConsignmentId
pub const fn from_array(id: [u8; 32]) -> Self
Methods from Deref<Target = Bytes32>§
Trait Implementations§
Source§impl Borrow<[u8]> for ConsignmentId
impl Borrow<[u8]> for ConsignmentId
Source§impl Clone for ConsignmentId
impl Clone for ConsignmentId
Source§fn clone(&self) -> ConsignmentId
fn clone(&self) -> ConsignmentId
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 CommitmentId for ConsignmentId
impl CommitmentId for ConsignmentId
Source§impl Debug for ConsignmentId
impl Debug for ConsignmentId
Source§impl Deref for ConsignmentId
impl Deref for ConsignmentId
Source§impl<'de> Deserialize<'de> for ConsignmentId
Available on crate feature serde
only.
impl<'de> Deserialize<'de> for ConsignmentId
Available on crate feature
serde
only.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 ConsignmentId
impl Display for ConsignmentId
Source§impl DisplayBaid64 for ConsignmentId
impl DisplayBaid64 for ConsignmentId
const HRI: &'static str = "rgb:csg"
const CHUNKING: bool = true
const PREFIX: bool = true
const EMBED_CHECKSUM: bool = false
const MNEMONIC: bool = true
fn to_baid64_payload(&self) -> [u8; 32]
const CHUNK_FIRST: usize = 8usize
const CHUNK_LEN: usize = 7usize
fn to_baid64_string(&self) -> String
fn to_baid64_mnemonic(&self) -> String
fn display_baid64(&self) -> Baid64Display<LEN>
fn fmt_baid64(&self, f: &mut Formatter<'_>) -> Result<(), Error>
Source§impl From<ConsignmentId> for Bytes32
impl From<ConsignmentId> for Bytes32
Source§fn from(wrapped: ConsignmentId) -> Self
fn from(wrapped: ConsignmentId) -> Self
Converts to this type from the input type.
Source§impl FromBaid64Str for ConsignmentId
impl FromBaid64Str for ConsignmentId
fn from_baid64_str(s: &str) -> Result<Self, Baid64ParseError>
Source§impl FromHex for ConsignmentId
impl FromHex for ConsignmentId
Source§impl FromStr for ConsignmentId
impl FromStr for ConsignmentId
Source§impl Hash for ConsignmentId
impl Hash for ConsignmentId
Source§impl Index<RangeFull> for ConsignmentId
impl Index<RangeFull> for ConsignmentId
Source§impl Index<RangeInclusive<usize>> for ConsignmentId
impl Index<RangeInclusive<usize>> for ConsignmentId
Source§impl Index<RangeToInclusive<usize>> for ConsignmentId
impl Index<RangeToInclusive<usize>> for ConsignmentId
Source§impl Index<usize> for ConsignmentId
impl Index<usize> for ConsignmentId
Source§impl LowerHex for ConsignmentId
impl LowerHex for ConsignmentId
Source§impl Ord for ConsignmentId
impl Ord for ConsignmentId
Source§fn cmp(&self, other: &ConsignmentId) -> Ordering
fn cmp(&self, other: &ConsignmentId) -> 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 ConsignmentId
impl PartialEq for ConsignmentId
Source§impl PartialOrd for ConsignmentId
impl PartialOrd for ConsignmentId
Source§impl Serialize for ConsignmentId
Available on crate feature serde
only.
impl Serialize for ConsignmentId
Available on crate feature
serde
only.Source§impl StrictDecode for ConsignmentId
impl StrictDecode for ConsignmentId
fn strict_decode(reader: &mut impl TypedRead) -> Result<Self, DecodeError>
fn strict_read(reader: impl ReadRaw) -> Result<Self, DecodeError>
Source§impl StrictDumb for ConsignmentId
impl StrictDumb for ConsignmentId
fn strict_dumb() -> Self
Source§impl StrictEncode for ConsignmentId
impl StrictEncode for ConsignmentId
fn strict_encode<W: TypedWrite>(&self, writer: W) -> Result<W>
fn strict_write(&self, writer: impl WriteRaw) -> Result<(), Error>
Source§impl StrictTuple for ConsignmentId
impl StrictTuple for ConsignmentId
const FIELD_COUNT: u8 = 1u8
fn strict_check_fields()
fn strict_type_info() -> TypeInfo<Self>
Source§impl StrictType for ConsignmentId
impl StrictType for ConsignmentId
const STRICT_LIB_NAME: &'static str = LIB_NAME_RGB_OPS
fn strict_name() -> Option<TypeName>
Source§impl UpperHex for ConsignmentId
impl UpperHex for ConsignmentId
Source§impl Wrapper for ConsignmentId
impl Wrapper for ConsignmentId
Source§fn from_inner(inner: Self::Inner) -> Self
fn from_inner(inner: Self::Inner) -> Self
Instantiates wrapper type with the inner data
Source§fn as_inner(&self) -> &Self::Inner
fn as_inner(&self) -> &Self::Inner
Returns reference to the inner representation for the wrapper type
Source§fn into_inner(self) -> Self::Inner
fn into_inner(self) -> Self::Inner
Unwraps the wrapper returning the inner type
impl Copy for ConsignmentId
impl Eq for ConsignmentId
impl StrictProduct for ConsignmentId
impl StructuralPartialEq for ConsignmentId
Auto Trait Implementations§
impl Freeze for ConsignmentId
impl RefUnwindSafe for ConsignmentId
impl Send for ConsignmentId
impl Sync for ConsignmentId
impl Unpin for ConsignmentId
impl UnwindSafe for ConsignmentId
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<Id, const LEN: usize, const REVERSE_STR: bool> ByteArray<LEN> for Id
impl<Id, const LEN: usize, const REVERSE_STR: bool> ByteArray<LEN> for Id
Source§fn from_byte_array(val: impl Into<[u8; LEN]>) -> Id
fn from_byte_array(val: impl Into<[u8; LEN]>) -> Id
Constructs a wrapper type around a byte array.
Source§fn from_slice(slice: impl AsRef<[u8]>) -> Result<Id, FromSliceError>
fn from_slice(slice: impl AsRef<[u8]>) -> Result<Id, FromSliceError>
Constructs a byte array from the slice. Errors if the slice length
doesn’t match
LEN
constant generic.Source§fn from_slice_unsafe(slice: impl AsRef<[u8]>) -> Id
fn from_slice_unsafe(slice: impl AsRef<[u8]>) -> Id
Constructs a byte array from the slice. Expects the slice length
doesn’t match
LEN
constant generic. Read moreSource§fn to_byte_array(&self) -> [u8; LEN]
fn to_byte_array(&self) -> [u8; LEN]
Returns a byte array representation stored in the wrapped type.
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
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.