pub enum ManifestComponentAddress {
Static(ComponentAddress),
Named(ManifestNamedAddress),
}
Variants§
Static(ComponentAddress)
Named(ManifestNamedAddress)
Trait Implementations§
Source§impl Clone for ManifestComponentAddress
impl Clone for ManifestComponentAddress
Source§fn clone(&self) -> ManifestComponentAddress
fn clone(&self) -> ManifestComponentAddress
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 Debug for ManifestComponentAddress
impl Debug for ManifestComponentAddress
Source§impl<D> Decode<ManifestCustomValueKind, D> for ManifestComponentAddresswhere
D: Decoder<ManifestCustomValueKind>,
impl<D> Decode<ManifestCustomValueKind, D> for ManifestComponentAddresswhere
D: Decoder<ManifestCustomValueKind>,
Source§fn decode_body_with_value_kind(
decoder: &mut D,
value_kind: ValueKind<ManifestCustomValueKind>,
) -> Result<ManifestComponentAddress, DecodeError>
fn decode_body_with_value_kind( decoder: &mut D, value_kind: ValueKind<ManifestCustomValueKind>, ) -> Result<ManifestComponentAddress, DecodeError>
Decodes the type from the decoder, which should match a preloaded value kind. Read more
Source§impl Describe<ScryptoCustomTypeKind> for ManifestComponentAddress
impl Describe<ScryptoCustomTypeKind> for ManifestComponentAddress
Source§const TYPE_ID: RustTypeId
const TYPE_ID: RustTypeId
The
TYPE_ID
should give a unique identifier for its SBOR schema type.
An SBOR schema type capture details about the SBOR payload, how it should be interpreted, validated and displayed. Read moreSource§fn type_data() -> TypeData<ScryptoCustomTypeKind, RustTypeId>
fn type_data() -> TypeData<ScryptoCustomTypeKind, RustTypeId>
Returns the local schema for the given type. Read more
Source§fn add_all_dependencies(aggregator: &mut TypeAggregator<C>)
fn add_all_dependencies(aggregator: &mut TypeAggregator<C>)
For each type referenced in
get_local_type_data
, we need to ensure that the type and all of its own references
get added to the aggregator. Read moreSource§impl<E> Encode<ManifestCustomValueKind, E> for ManifestComponentAddresswhere
E: Encoder<ManifestCustomValueKind>,
impl<E> Encode<ManifestCustomValueKind, E> for ManifestComponentAddresswhere
E: Encoder<ManifestCustomValueKind>,
Source§fn encode_value_kind(&self, encoder: &mut E) -> Result<(), EncodeError>
fn encode_value_kind(&self, encoder: &mut E) -> Result<(), EncodeError>
Encodes the SBOR value’s kind to the encoder
Source§fn encode_body(&self, encoder: &mut E) -> Result<(), EncodeError>
fn encode_body(&self, encoder: &mut E) -> Result<(), EncodeError>
Encodes the SBOR body of the type to the encoder. Read more
Source§impl From<ComponentAddress> for ManifestComponentAddress
impl From<ComponentAddress> for ManifestComponentAddress
Source§fn from(value: ComponentAddress) -> ManifestComponentAddress
fn from(value: ComponentAddress) -> ManifestComponentAddress
Converts to this type from the input type.
Source§impl From<ManifestComponentAddress> for ManifestGlobalAddress
impl From<ManifestComponentAddress> for ManifestGlobalAddress
Source§fn from(value: ManifestComponentAddress) -> ManifestGlobalAddress
fn from(value: ManifestComponentAddress) -> ManifestGlobalAddress
Converts to this type from the input type.
Source§impl From<ManifestNamedAddress> for ManifestComponentAddress
impl From<ManifestNamedAddress> for ManifestComponentAddress
Source§fn from(value: ManifestNamedAddress) -> ManifestComponentAddress
fn from(value: ManifestNamedAddress) -> ManifestComponentAddress
Converts to this type from the input type.
Source§impl Hash for ManifestComponentAddress
impl Hash for ManifestComponentAddress
Source§impl LabelledResolvable for ManifestComponentAddress
impl LabelledResolvable for ManifestComponentAddress
Source§type ResolverOutput = ManifestNamedAddress
type ResolverOutput = ManifestNamedAddress
You’ll be passed a resolver, what will the resolver output?
Often this will be
Self
, but sometimes it will be another type which you will
need to map into Self
.Source§impl<'a> LabelledResolveFrom<&'a String> for ManifestComponentAddress
impl<'a> LabelledResolveFrom<&'a String> for ManifestComponentAddress
fn labelled_resolve_from( value: &'a String, resolver: &impl LabelResolver<ManifestNamedAddress>, ) -> ManifestComponentAddress
Source§impl<'a> LabelledResolveFrom<&'a str> for ManifestComponentAddress
impl<'a> LabelledResolveFrom<&'a str> for ManifestComponentAddress
fn labelled_resolve_from( value: &'a str, resolver: &impl LabelResolver<ManifestNamedAddress>, ) -> ManifestComponentAddress
Source§impl<'a> LabelledResolveFrom<String> for ManifestComponentAddress
impl<'a> LabelledResolveFrom<String> for ManifestComponentAddress
fn labelled_resolve_from( value: String, resolver: &impl LabelResolver<ManifestNamedAddress>, ) -> ManifestComponentAddress
Source§impl<T> LabelledResolveFrom<T> for ManifestComponentAddresswhere
T: Resolve<ManifestComponentAddress>,
impl<T> LabelledResolveFrom<T> for ManifestComponentAddresswhere
T: Resolve<ManifestComponentAddress>,
fn labelled_resolve_from( value: T, _resolver: &impl LabelResolver<ManifestNamedAddress>, ) -> ManifestComponentAddress
Source§impl Ord for ManifestComponentAddress
impl Ord for ManifestComponentAddress
Source§fn cmp(&self, other: &ManifestComponentAddress) -> Ordering
fn cmp(&self, other: &ManifestComponentAddress) -> 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 ManifestComponentAddress
impl PartialEq for ManifestComponentAddress
Source§impl PartialOrd for ManifestComponentAddress
impl PartialOrd for ManifestComponentAddress
Source§impl<T, E> ResolveFrom<T> for ManifestComponentAddress
impl<T, E> ResolveFrom<T> for ManifestComponentAddress
fn resolve_from(value: T) -> ManifestComponentAddress
Source§impl TryFrom<GlobalAddress> for ManifestComponentAddress
impl TryFrom<GlobalAddress> for ManifestComponentAddress
Source§type Error = ParseComponentAddressError
type Error = ParseComponentAddressError
The type returned in the event of a conversion error.
Source§fn try_from(
value: GlobalAddress,
) -> Result<ManifestComponentAddress, <ManifestComponentAddress as TryFrom<GlobalAddress>>::Error>
fn try_from( value: GlobalAddress, ) -> Result<ManifestComponentAddress, <ManifestComponentAddress as TryFrom<GlobalAddress>>::Error>
Performs the conversion.
Source§impl TryFrom<ManifestAddress> for ManifestComponentAddress
impl TryFrom<ManifestAddress> for ManifestComponentAddress
Source§type Error = ParseComponentAddressError
type Error = ParseComponentAddressError
The type returned in the event of a conversion error.
Source§fn try_from(
value: ManifestAddress,
) -> Result<ManifestComponentAddress, <ManifestComponentAddress as TryFrom<ManifestAddress>>::Error>
fn try_from( value: ManifestAddress, ) -> Result<ManifestComponentAddress, <ManifestComponentAddress as TryFrom<ManifestAddress>>::Error>
Performs the conversion.
impl Copy for ManifestComponentAddress
impl Eq for ManifestComponentAddress
impl Resolvable for ManifestComponentAddress
impl StructuralPartialEq for ManifestComponentAddress
Auto Trait Implementations§
impl Freeze for ManifestComponentAddress
impl RefUnwindSafe for ManifestComponentAddress
impl Send for ManifestComponentAddress
impl Sync for ManifestComponentAddress
impl Unpin for ManifestComponentAddress
impl UnwindSafe for ManifestComponentAddress
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> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
Source§impl<T, U> ContextualTryInto<U> for Twhere
U: ContextualTryFrom<T>,
impl<T, U> ContextualTryInto<U> for Twhere
U: ContextualTryFrom<T>,
type Error = <U as ContextualTryFrom<T>>::Error
type Context = <U as ContextualTryFrom<T>>::Context
fn contextual_try_into( self, context: &<U as ContextualTryFrom<T>>::Context, ) -> Result<U, <U as ContextualTryFrom<T>>::Error>
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.