pub struct PrefixedClassId {
pub trace_path: TracePath,
pub base_class_id: ClassId,
}
Expand description
Prefixed class to trace sources like ICS-20 PrefixedDenom
Fields§
§trace_path: TracePath
A series of {port-id}/{channel-id}
s for tracing the source of the class.
base_class_id: ClassId
Base class of the relayed non-fungible token.
Implementations§
source§impl PrefixedClassId
impl PrefixedClassId
sourcepub fn remove_trace_prefix(&mut self, prefix: &TracePrefix)
pub fn remove_trace_prefix(&mut self, prefix: &TracePrefix)
Removes the specified prefix from the trace path if there is a match, otherwise does nothing.
sourcepub fn add_trace_prefix(&mut self, prefix: TracePrefix)
pub fn add_trace_prefix(&mut self, prefix: TracePrefix)
Adds the specified prefix to the trace path.
Trait Implementations§
source§impl BorshDeserialize for PrefixedClassId
impl BorshDeserialize for PrefixedClassId
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 PrefixedClassId
impl BorshSerialize for PrefixedClassId
source§impl Clone for PrefixedClassId
impl Clone for PrefixedClassId
source§fn clone(&self) -> PrefixedClassId
fn clone(&self) -> PrefixedClassId
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 PrefixedClassId
impl Debug for PrefixedClassId
source§impl Decode for PrefixedClassId
impl Decode for PrefixedClassId
source§fn decode<__CodecInputEdqy: Input>(
__codec_input_edqy: &mut __CodecInputEdqy
) -> Result<Self, Error>
fn decode<__CodecInputEdqy: Input>( __codec_input_edqy: &mut __CodecInputEdqy ) -> Result<Self, Error>
Attempt to deserialise the value from input.
source§fn decode_into<I>(
input: &mut I,
dst: &mut MaybeUninit<Self>
) -> Result<DecodeFinished, Error>where
I: Input,
fn decode_into<I>(
input: &mut I,
dst: &mut MaybeUninit<Self>
) -> Result<DecodeFinished, Error>where
I: Input,
Attempt to deserialize the value from input into a pre-allocated piece of memory. Read more
source§impl<'de> Deserialize<'de> for PrefixedClassId
impl<'de> Deserialize<'de> for PrefixedClassId
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 PrefixedClassId
impl Display for PrefixedClassId
source§impl Encode for PrefixedClassId
impl Encode for PrefixedClassId
source§fn size_hint(&self) -> usize
fn size_hint(&self) -> usize
If possible give a hint of expected size of the encoding. Read more
source§fn encode_to<__CodecOutputEdqy: Output + ?Sized>(
&self,
__codec_dest_edqy: &mut __CodecOutputEdqy
)
fn encode_to<__CodecOutputEdqy: Output + ?Sized>( &self, __codec_dest_edqy: &mut __CodecOutputEdqy )
Convert self to a slice and append it to the destination.
source§fn using_encoded<R, F>(&self, f: F) -> R
fn using_encoded<R, F>(&self, f: F) -> R
Convert self to a slice and then invoke the given closure with it.
source§fn encoded_size(&self) -> usize
fn encoded_size(&self) -> usize
Calculates the encoded size. Read more
source§impl From<ClassId> for PrefixedClassId
impl From<ClassId> for PrefixedClassId
source§impl From<PrefixedClassId> for ClassTrace
impl From<PrefixedClassId> for ClassTrace
source§fn from(value: PrefixedClassId) -> Self
fn from(value: PrefixedClassId) -> Self
Converts to this type from the input type.
source§impl FromStr for PrefixedClassId
impl FromStr for PrefixedClassId
source§impl JsonSchema for PrefixedClassId
impl JsonSchema for PrefixedClassId
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(gen: &mut SchemaGenerator) -> Schema
fn json_schema(gen: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
source§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 PrefixedClassId
impl Ord for PrefixedClassId
source§fn cmp(&self, other: &PrefixedClassId) -> Ordering
fn cmp(&self, other: &PrefixedClassId) -> 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 PrefixedClassId
impl PartialEq for PrefixedClassId
source§fn eq(&self, other: &PrefixedClassId) -> bool
fn eq(&self, other: &PrefixedClassId) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for PrefixedClassId
impl PartialOrd for PrefixedClassId
source§fn partial_cmp(&self, other: &PrefixedClassId) -> Option<Ordering>
fn partial_cmp(&self, other: &PrefixedClassId) -> Option<Ordering>
1.0.0 · source§fn 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 moresource§impl Serialize for PrefixedClassId
impl Serialize for PrefixedClassId
source§impl TryFrom<ClassTrace> for PrefixedClassId
impl TryFrom<ClassTrace> for PrefixedClassId
§type Error = NftTransferError
type Error = NftTransferError
The type returned in the event of a conversion error.
source§impl TypeInfo for PrefixedClassId
impl TypeInfo for PrefixedClassId
impl EncodeLike for PrefixedClassId
impl Eq for PrefixedClassId
impl StructuralPartialEq for PrefixedClassId
Auto Trait Implementations§
impl Freeze for PrefixedClassId
impl RefUnwindSafe for PrefixedClassId
impl Send for PrefixedClassId
impl Sync for PrefixedClassId
impl Unpin for PrefixedClassId
impl UnwindSafe for PrefixedClassId
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