pub struct TransactionValidationConfigurationSubstate { /* private fields */ }
Expand description
If you wish to get access to match on the versions, use .as_ref()
or .as_mut()
.
Implementations§
Source§impl TransactionValidationConfigurationSubstate
impl TransactionValidationConfigurationSubstate
pub fn new(inner: TransactionValidationConfigurationVersions) -> Self
Trait Implementations§
Source§impl AsMut<TransactionValidationConfigurationVersions> for TransactionValidationConfigurationSubstate
impl AsMut<TransactionValidationConfigurationVersions> for TransactionValidationConfigurationSubstate
Source§fn as_mut(&mut self) -> &mut TransactionValidationConfigurationVersions
fn as_mut(&mut self) -> &mut TransactionValidationConfigurationVersions
Converts this type into a mutable reference of the (usually inferred) input type.
Source§impl AsRef<TransactionValidationConfigurationVersions> for TransactionValidationConfigurationSubstate
impl AsRef<TransactionValidationConfigurationVersions> for TransactionValidationConfigurationSubstate
Source§fn as_ref(&self) -> &TransactionValidationConfigurationVersions
fn as_ref(&self) -> &TransactionValidationConfigurationVersions
Converts this type into a shared reference of the (usually inferred) input type.
Source§impl<X: CustomValueKind> Categorize<X> for TransactionValidationConfigurationSubstate
impl<X: CustomValueKind> Categorize<X> for TransactionValidationConfigurationSubstate
fn value_kind() -> ValueKind<X>
Source§impl Clone for TransactionValidationConfigurationSubstate
impl Clone for TransactionValidationConfigurationSubstate
Source§fn clone(&self) -> TransactionValidationConfigurationSubstate
fn clone(&self) -> TransactionValidationConfigurationSubstate
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<D: Decoder<X>, X: CustomValueKind> Decode<X, D> for TransactionValidationConfigurationSubstate
impl<D: Decoder<X>, X: CustomValueKind> Decode<X, D> for TransactionValidationConfigurationSubstate
Source§fn decode_body_with_value_kind(
decoder: &mut D,
value_kind: ValueKind<X>,
) -> Result<Self, DecodeError>
fn decode_body_with_value_kind( decoder: &mut D, value_kind: ValueKind<X>, ) -> Result<Self, DecodeError>
Decodes the type from the decoder, which should match a preloaded value kind. Read more
Source§impl<C: CustomTypeKind<RustTypeId>> Describe<C> for TransactionValidationConfigurationSubstate
impl<C: CustomTypeKind<RustTypeId>> Describe<C> for TransactionValidationConfigurationSubstate
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<C, RustTypeId>
fn type_data() -> TypeData<C, 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: Encoder<X>, X: CustomValueKind> Encode<X, E> for TransactionValidationConfigurationSubstate
impl<E: Encoder<X>, X: CustomValueKind> Encode<X, E> for TransactionValidationConfigurationSubstate
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<TransactionValidationConfigV1> for TransactionValidationConfigurationSubstate
impl From<TransactionValidationConfigV1> for TransactionValidationConfigurationSubstate
Source§fn from(value: TransactionValidationConfigV1) -> Self
fn from(value: TransactionValidationConfigV1) -> Self
Converts to this type from the input type.
Source§impl From<TransactionValidationConfigurationSubstate> for TransactionValidationConfigurationVersions
impl From<TransactionValidationConfigurationSubstate> for TransactionValidationConfigurationVersions
Source§fn from(value: TransactionValidationConfigurationSubstate) -> Self
fn from(value: TransactionValidationConfigurationSubstate) -> Self
Converts to this type from the input type.
Source§impl From<TransactionValidationConfigurationVersions> for TransactionValidationConfigurationSubstate
impl From<TransactionValidationConfigurationVersions> for TransactionValidationConfigurationSubstate
Source§fn from(value: TransactionValidationConfigurationVersions) -> Self
fn from(value: TransactionValidationConfigurationVersions) -> Self
Converts to this type from the input type.
Source§impl PartialEq for TransactionValidationConfigurationSubstate
impl PartialEq for TransactionValidationConfigurationSubstate
Source§fn eq(&self, other: &TransactionValidationConfigurationSubstate) -> bool
fn eq(&self, other: &TransactionValidationConfigurationSubstate) -> bool
Tests for
self
and other
values to be equal, and is used by ==
.Source§impl<X: CustomValueKind> SborEnum<X> for TransactionValidationConfigurationSubstatewhere
for<'b_> &'b_ TransactionValidationConfigurationVersions: SborEnum<X>,
impl<X: CustomValueKind> SborEnum<X> for TransactionValidationConfigurationSubstatewhere
for<'b_> &'b_ TransactionValidationConfigurationVersions: SborEnum<X>,
fn get_discriminator(&self) -> u8
fn get_length(&self) -> usize
Source§impl<X: CustomValueKind> SborTuple<X> for TransactionValidationConfigurationSubstatewhere
for<'b_> &'b_ TransactionValidationConfigurationVersions: SborTuple<X>,
impl<X: CustomValueKind> SborTuple<X> for TransactionValidationConfigurationSubstatewhere
for<'b_> &'b_ TransactionValidationConfigurationVersions: SborTuple<X>,
fn get_length(&self) -> usize
Source§impl UniqueVersioned for TransactionValidationConfigurationSubstate
impl UniqueVersioned for TransactionValidationConfigurationSubstate
Source§fn as_unique_version(&self) -> &Self::LatestVersion
fn as_unique_version(&self) -> &Self::LatestVersion
Returns an immutable reference to (currently) the only possible version of the inner content.
Source§fn as_unique_version_mut(&mut self) -> &mut Self::LatestVersion
fn as_unique_version_mut(&mut self) -> &mut Self::LatestVersion
Returns a mutable reference to (currently) the only possible version of the inner content. Read more
Source§fn into_unique_version(self) -> Self::LatestVersion
fn into_unique_version(self) -> Self::LatestVersion
Returns the (currently) only possible version of the inner content. Read more
Source§fn from_unique_version(content: Self::LatestVersion) -> Self
fn from_unique_version(content: Self::LatestVersion) -> Self
Creates the versioned wrapper from the (currently) only possible version. Read more
Source§impl Versioned for TransactionValidationConfigurationSubstate
impl Versioned for TransactionValidationConfigurationSubstate
Source§fn from_latest_version(latest: Self::LatestVersion) -> Self
fn from_latest_version(latest: Self::LatestVersion) -> Self
Constructs the versioned enum from the latest content
Source§type Versions = TransactionValidationConfigurationVersions
type Versions = TransactionValidationConfigurationVersions
The type for the enum of versions.
Source§type LatestVersion = TransactionValidationConfigV1
type LatestVersion = TransactionValidationConfigV1
The type for the latest content.
Source§fn is_fully_updated(&self) -> bool
fn is_fully_updated(&self) -> bool
Returns true if at the latest version.
Source§fn in_place_fully_update(&mut self) -> &mut Self
fn in_place_fully_update(&mut self) -> &mut Self
Updates to the latest version in place.
Source§fn fully_update_and_into_latest_version(self) -> Self::LatestVersion
fn fully_update_and_into_latest_version(self) -> Self::LatestVersion
Updates itself to the latest version, then returns the latest content
Source§fn as_latest_version(&self) -> Option<&Self::LatestVersion>
fn as_latest_version(&self) -> Option<&Self::LatestVersion>
If the versioned wrapper is at the latest version, it returns
an immutable reference to the latest content, otherwise it returns
None
. Read moreSource§fn as_latest_version_mut(&mut self) -> Option<&mut Self::LatestVersion>
fn as_latest_version_mut(&mut self) -> Option<&mut Self::LatestVersion>
If the versioned wrapper is at the latest version, it returns
a mutable reference to the latest content, otherwise it returns
None
. Read moreSource§fn as_versions(&self) -> &Self::Versions
fn as_versions(&self) -> &Self::Versions
Gets a reference the inner versions enum, for e.g. matching on the enum. Read more
Source§fn as_versions_mut(&mut self) -> &mut Self::Versions
fn as_versions_mut(&mut self) -> &mut Self::Versions
Gets a mutable reference the inner versions enum, for e.g. matching on the enum. Read more
Source§fn into_versions(self) -> Self::Versions
fn into_versions(self) -> Self::Versions
Removes the upgradable wrapper to get at the inner versions enum, for e.g. matching on the enum.
Source§fn from_versions(version: Self::Versions) -> Self
fn from_versions(version: Self::Versions) -> Self
Creates a new Versioned wrapper from a given specific version.
Source§fn in_place_fully_update_and_as_latest_version_mut(
&mut self,
) -> &mut Self::LatestVersion
fn in_place_fully_update_and_as_latest_version_mut( &mut self, ) -> &mut Self::LatestVersion
Updates the latest version in place, and returns a
&mut
to the latest contentSource§fn fully_update(self) -> Self
fn fully_update(self) -> Self
Consumes self, updates to the latest version and returns itself.
impl CheckedBackwardsCompatibleSchema<ScryptoCustomSchema> for TransactionValidationConfigurationSubstate
impl Copy for TransactionValidationConfigurationSubstate
impl Eq for TransactionValidationConfigurationSubstate
impl StructuralPartialEq for TransactionValidationConfigurationSubstate
Auto Trait Implementations§
impl Freeze for TransactionValidationConfigurationSubstate
impl RefUnwindSafe for TransactionValidationConfigurationSubstate
impl Send for TransactionValidationConfigurationSubstate
impl Sync for TransactionValidationConfigurationSubstate
impl Unpin for TransactionValidationConfigurationSubstate
impl UnwindSafe for TransactionValidationConfigurationSubstate
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<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.