pub struct TokenVersions {
pub validate_structure_interval: FeatureVersion,
pub validate_pre_programmed_distribution_amounts: FeatureVersion,
pub token_configuration_format: FeatureVersionBounds,
}Fields§
§validate_structure_interval: FeatureVersion§validate_pre_programmed_distribution_amounts: FeatureVersionTokenPreProgrammedDistribution::validate_amounts. Called from protocol version 14 on
(data contract create basic_structure v2 and DataContract::validate_update v1).
token_configuration_format: FeatureVersionBoundsAccepted TokenConfiguration format versions. max_version 0 admits only V0; 1 also
admits V1, which adds the per-token shielded pool flag. Contract creates and updates
carrying a format above the bound are rejected with UnsupportedVersionError.
Trait Implementations§
Source§impl Clone for TokenVersions
impl Clone for TokenVersions
Source§fn clone(&self) -> TokenVersions
fn clone(&self) -> TokenVersions
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 TokenVersions
impl Debug for TokenVersions
Source§impl Default for TokenVersions
impl Default for TokenVersions
Source§fn default() -> TokenVersions
fn default() -> TokenVersions
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for TokenVersions
impl RefUnwindSafe for TokenVersions
impl Send for TokenVersions
impl Sync for TokenVersions
impl Unpin for TokenVersions
impl UnsafeUnpin for TokenVersions
impl UnwindSafe for TokenVersions
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> IntoPlatformVersioned<U> for Twhere
U: FromPlatformVersioned<T>,
impl<T, U> IntoPlatformVersioned<U> for Twhere
U: FromPlatformVersioned<T>,
Source§fn into_platform_versioned(self, platform_version: &PlatformVersion) -> U
fn into_platform_versioned(self, platform_version: &PlatformVersion) -> U
Performs the conversion.
Source§impl<T, U> TryIntoPlatformVersioned<U> for Twhere
U: TryFromPlatformVersioned<T>,
impl<T, U> TryIntoPlatformVersioned<U> for Twhere
U: TryFromPlatformVersioned<T>,
Source§type Error = <U as TryFromPlatformVersioned<T>>::Error
type Error = <U as TryFromPlatformVersioned<T>>::Error
The type returned in the event of a conversion error.
Source§fn try_into_platform_versioned(
self,
platform_version: &PlatformVersion,
) -> Result<U, <U as TryFromPlatformVersioned<T>>::Error>
fn try_into_platform_versioned( self, platform_version: &PlatformVersion, ) -> Result<U, <U as TryFromPlatformVersioned<T>>::Error>
Performs the conversion.