pub struct FeatureUpdate { /* private fields */ }Expand description
Encapsulates details about an update to a finalized feature.
Implementations§
Source§impl FeatureUpdate
impl FeatureUpdate
Sourcepub fn new(
max_version_level: i16,
upgrade_type: UpgradeType,
) -> Result<Self, Error>
pub fn new( max_version_level: i16, upgrade_type: UpgradeType, ) -> Result<Self, Error>
Creates a new FeatureUpdate.
§Arguments
max_version_level- The new maximum version level for the finalized feature. a value of zero is special and indicates that the update is intended to delete the finalized feature, and should be accompanied by setting theupgrade_typeto safe or unsafe.upgrade_type- Indicate what kind of upgrade should be performed in this operation. - UPGRADE: upgrading the feature level - SAFE_DOWNGRADE: only downgrades which do not result in metadata loss are permitted - UNSAFE_DOWNGRADE: any downgrade, including those which may result in metadata loss, are permitted
§Errors
Returns an error answering Error::is_local_illegal_argument_error if
max_version_level is zero while
upgrade_type is UpgradeType::Upgrade, or if max_version_level is
negative.
Sourcepub fn max_version_level(&self) -> i16
pub fn max_version_level(&self) -> i16
Returns the new maximum version level for the finalized feature.
Sourcepub fn upgrade_type(&self) -> UpgradeType
pub fn upgrade_type(&self) -> UpgradeType
Returns the upgrade type for this update.
Trait Implementations§
Source§impl Clone for FeatureUpdate
impl Clone for FeatureUpdate
Source§fn clone(&self) -> FeatureUpdate
fn clone(&self) -> FeatureUpdate
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 FeatureUpdate
impl Debug for FeatureUpdate
Source§impl Display for FeatureUpdate
impl Display for FeatureUpdate
Source§impl Hash for FeatureUpdate
impl Hash for FeatureUpdate
Source§impl PartialEq for FeatureUpdate
impl PartialEq for FeatureUpdate
impl Eq for FeatureUpdate
impl StructuralPartialEq for FeatureUpdate
Auto Trait Implementations§
impl Freeze for FeatureUpdate
impl RefUnwindSafe for FeatureUpdate
impl Send for FeatureUpdate
impl Sync for FeatureUpdate
impl Unpin for FeatureUpdate
impl UnsafeUnpin for FeatureUpdate
impl UnwindSafe for FeatureUpdate
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,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more