pub enum ManifestResourceAddress {
Static(ResourceAddress),
Named(ManifestNamedAddress),
}Variants§
Static(ResourceAddress)
Named(ManifestNamedAddress)
Trait Implementations§
Source§impl Clone for ManifestResourceAddress
impl Clone for ManifestResourceAddress
Source§fn clone(&self) -> ManifestResourceAddress
fn clone(&self) -> ManifestResourceAddress
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 ManifestResourceAddress
impl Debug for ManifestResourceAddress
Source§impl<D> Decode<ManifestCustomValueKind, D> for ManifestResourceAddresswhere
D: Decoder<ManifestCustomValueKind>,
impl<D> Decode<ManifestCustomValueKind, D> for ManifestResourceAddresswhere
D: Decoder<ManifestCustomValueKind>,
Source§fn decode_body_with_value_kind(
decoder: &mut D,
value_kind: ValueKind<ManifestCustomValueKind>,
) -> Result<ManifestResourceAddress, DecodeError>
fn decode_body_with_value_kind( decoder: &mut D, value_kind: ValueKind<ManifestCustomValueKind>, ) -> Result<ManifestResourceAddress, DecodeError>
Decodes the type from the decoder, which should match a preloaded value kind. Read more
Source§impl Describe<ScryptoCustomTypeKind> for ManifestResourceAddress
impl Describe<ScryptoCustomTypeKind> for ManifestResourceAddress
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 ManifestResourceAddresswhere
E: Encoder<ManifestCustomValueKind>,
impl<E> Encode<ManifestCustomValueKind, E> for ManifestResourceAddresswhere
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<ManifestNamedAddress> for ManifestResourceAddress
impl From<ManifestNamedAddress> for ManifestResourceAddress
Source§fn from(value: ManifestNamedAddress) -> ManifestResourceAddress
fn from(value: ManifestNamedAddress) -> ManifestResourceAddress
Converts to this type from the input type.
Source§impl From<ManifestResourceAddress> for ManifestGlobalAddress
impl From<ManifestResourceAddress> for ManifestGlobalAddress
Source§fn from(value: ManifestResourceAddress) -> ManifestGlobalAddress
fn from(value: ManifestResourceAddress) -> ManifestGlobalAddress
Converts to this type from the input type.
Source§impl From<ResourceAddress> for ManifestResourceAddress
impl From<ResourceAddress> for ManifestResourceAddress
Source§fn from(value: ResourceAddress) -> ManifestResourceAddress
fn from(value: ResourceAddress) -> ManifestResourceAddress
Converts to this type from the input type.
Source§impl Hash for ManifestResourceAddress
impl Hash for ManifestResourceAddress
Source§impl LabelledResolvable for ManifestResourceAddress
impl LabelledResolvable for ManifestResourceAddress
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 ManifestResourceAddress
impl<'a> LabelledResolveFrom<&'a String> for ManifestResourceAddress
fn labelled_resolve_from( value: &'a String, resolver: &impl LabelResolver<ManifestNamedAddress>, ) -> ManifestResourceAddress
Source§impl<'a> LabelledResolveFrom<&'a str> for ManifestResourceAddress
impl<'a> LabelledResolveFrom<&'a str> for ManifestResourceAddress
fn labelled_resolve_from( value: &'a str, resolver: &impl LabelResolver<ManifestNamedAddress>, ) -> ManifestResourceAddress
Source§impl<'a> LabelledResolveFrom<String> for ManifestResourceAddress
impl<'a> LabelledResolveFrom<String> for ManifestResourceAddress
fn labelled_resolve_from( value: String, resolver: &impl LabelResolver<ManifestNamedAddress>, ) -> ManifestResourceAddress
Source§impl<T> LabelledResolveFrom<T> for ManifestResourceAddresswhere
T: Resolve<ManifestResourceAddress>,
impl<T> LabelledResolveFrom<T> for ManifestResourceAddresswhere
T: Resolve<ManifestResourceAddress>,
fn labelled_resolve_from( value: T, _resolver: &impl LabelResolver<ManifestNamedAddress>, ) -> ManifestResourceAddress
Source§impl Ord for ManifestResourceAddress
impl Ord for ManifestResourceAddress
Source§fn cmp(&self, other: &ManifestResourceAddress) -> Ordering
fn cmp(&self, other: &ManifestResourceAddress) -> 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 ManifestResourceAddress
impl PartialEq for ManifestResourceAddress
Source§impl PartialOrd for ManifestResourceAddress
impl PartialOrd for ManifestResourceAddress
Source§impl<T, E> ResolveFrom<T> for ManifestResourceAddress
impl<T, E> ResolveFrom<T> for ManifestResourceAddress
fn resolve_from(value: T) -> ManifestResourceAddress
Source§impl TryFrom<GlobalAddress> for ManifestResourceAddress
impl TryFrom<GlobalAddress> for ManifestResourceAddress
Source§type Error = ParseResourceAddressError
type Error = ParseResourceAddressError
The type returned in the event of a conversion error.
Source§fn try_from(
value: GlobalAddress,
) -> Result<ManifestResourceAddress, <ManifestResourceAddress as TryFrom<GlobalAddress>>::Error>
fn try_from( value: GlobalAddress, ) -> Result<ManifestResourceAddress, <ManifestResourceAddress as TryFrom<GlobalAddress>>::Error>
Performs the conversion.
Source§impl TryFrom<ManifestAddress> for ManifestResourceAddress
impl TryFrom<ManifestAddress> for ManifestResourceAddress
Source§type Error = ParseResourceAddressError
type Error = ParseResourceAddressError
The type returned in the event of a conversion error.
Source§fn try_from(
value: ManifestAddress,
) -> Result<ManifestResourceAddress, <ManifestResourceAddress as TryFrom<ManifestAddress>>::Error>
fn try_from( value: ManifestAddress, ) -> Result<ManifestResourceAddress, <ManifestResourceAddress as TryFrom<ManifestAddress>>::Error>
Performs the conversion.
impl Copy for ManifestResourceAddress
impl Eq for ManifestResourceAddress
impl Resolvable for ManifestResourceAddress
impl StructuralPartialEq for ManifestResourceAddress
Auto Trait Implementations§
impl Freeze for ManifestResourceAddress
impl RefUnwindSafe for ManifestResourceAddress
impl Send for ManifestResourceAddress
impl Sync for ManifestResourceAddress
impl Unpin for ManifestResourceAddress
impl UnwindSafe for ManifestResourceAddress
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<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Convert
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Convert
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Convert
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.Source§impl<T> DowncastSync for T
impl<T> DowncastSync for T
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.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.Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more