pub struct FeatureUpdate {
pub name: String,
pub max_version_level: i16,
pub upgrade_type: FeatureUpgradeType,
}Expand description
Finalized broker feature update.
Fields§
§name: StringFeature name.
max_version_level: i16New finalized maximum version level. Values below 1 delete the finalized feature.
upgrade_type: FeatureUpgradeTypeHow the broker should apply an upgrade or downgrade.
Implementations§
Source§impl FeatureUpdate
impl FeatureUpdate
Sourcepub fn upgrade(name: impl Into<String>, max_version_level: i16) -> Self
pub fn upgrade(name: impl Into<String>, max_version_level: i16) -> Self
Creates an upgrade-only feature update.
Sourcepub fn safe_downgrade(name: impl Into<String>, max_version_level: i16) -> Self
pub fn safe_downgrade(name: impl Into<String>, max_version_level: i16) -> Self
Creates a safe downgrade or deletion update.
Sourcepub fn unsafe_downgrade(name: impl Into<String>, max_version_level: i16) -> Self
pub fn unsafe_downgrade(name: impl Into<String>, max_version_level: i16) -> Self
Creates an unsafe downgrade or deletion 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 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,
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.