#[non_exhaustive]pub struct FeatureUpdateKey {
pub feature: StrBytes,
pub max_version_level: i16,
pub allow_downgrade: bool,
pub upgrade_type: i8,
pub unknown_tagged_fields: BTreeMap<i32, Bytes>,
}Expand description
Valid versions: 0-1
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.feature: StrBytesThe name of the finalized feature to be updated.
Supported API versions: 0-1
max_version_level: i16The new maximum version level for the finalized feature. A value >= 1 is valid. A value < 1, is special, and can be used to request the deletion of the finalized feature.
Supported API versions: 0-1
allow_downgrade: boolDEPRECATED in version 1 (see DowngradeType). When set to true, the finalized feature version level is allowed to be downgraded/deleted. The downgrade request will fail if the new maximum version level is a value that’s not lower than the existing maximum finalized version level.
Supported API versions: 0
upgrade_type: i8Determine which type of upgrade will be performed: 1 will perform an upgrade only (default), 2 is safe downgrades only (lossless), 3 is unsafe downgrades (lossy).
Supported API versions: 1
unknown_tagged_fields: BTreeMap<i32, Bytes>Other tagged fields
Implementations§
source§impl FeatureUpdateKey
impl FeatureUpdateKey
sourcepub fn with_feature(self, value: StrBytes) -> Self
pub fn with_feature(self, value: StrBytes) -> Self
Sets feature to the passed value.
The name of the finalized feature to be updated.
Supported API versions: 0-1
sourcepub fn with_max_version_level(self, value: i16) -> Self
pub fn with_max_version_level(self, value: i16) -> Self
Sets max_version_level to the passed value.
The new maximum version level for the finalized feature. A value >= 1 is valid. A value < 1, is special, and can be used to request the deletion of the finalized feature.
Supported API versions: 0-1
sourcepub fn with_allow_downgrade(self, value: bool) -> Self
pub fn with_allow_downgrade(self, value: bool) -> Self
Sets allow_downgrade to the passed value.
DEPRECATED in version 1 (see DowngradeType). When set to true, the finalized feature version level is allowed to be downgraded/deleted. The downgrade request will fail if the new maximum version level is a value that’s not lower than the existing maximum finalized version level.
Supported API versions: 0
sourcepub fn with_upgrade_type(self, value: i8) -> Self
pub fn with_upgrade_type(self, value: i8) -> Self
Sets upgrade_type to the passed value.
Determine which type of upgrade will be performed: 1 will perform an upgrade only (default), 2 is safe downgrades only (lossless), 3 is unsafe downgrades (lossy).
Supported API versions: 1
sourcepub fn with_unknown_tagged_fields(self, value: BTreeMap<i32, Bytes>) -> Self
pub fn with_unknown_tagged_fields(self, value: BTreeMap<i32, Bytes>) -> Self
Sets unknown_tagged_fields to the passed value.
sourcepub fn with_unknown_tagged_field(self, key: i32, value: Bytes) -> Self
pub fn with_unknown_tagged_field(self, key: i32, value: Bytes) -> Self
Inserts an entry into unknown_tagged_fields.
Trait Implementations§
source§impl Clone for FeatureUpdateKey
impl Clone for FeatureUpdateKey
source§fn clone(&self) -> FeatureUpdateKey
fn clone(&self) -> FeatureUpdateKey
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for FeatureUpdateKey
impl Debug for FeatureUpdateKey
source§impl Decodable for FeatureUpdateKey
Available on crate feature broker only.
impl Decodable for FeatureUpdateKey
broker only.source§impl Default for FeatureUpdateKey
impl Default for FeatureUpdateKey
source§impl Encodable for FeatureUpdateKey
Available on crate feature client only.
impl Encodable for FeatureUpdateKey
client only.source§impl Message for FeatureUpdateKey
impl Message for FeatureUpdateKey
source§const VERSIONS: VersionRange = _
const VERSIONS: VersionRange = _
source§const DEPRECATED_VERSIONS: Option<VersionRange> = None
const DEPRECATED_VERSIONS: Option<VersionRange> = None
source§impl PartialEq for FeatureUpdateKey
impl PartialEq for FeatureUpdateKey
impl StructuralPartialEq for FeatureUpdateKey
Auto Trait Implementations§
impl !Freeze for FeatureUpdateKey
impl RefUnwindSafe for FeatureUpdateKey
impl Send for FeatureUpdateKey
impl Sync for FeatureUpdateKey
impl Unpin for FeatureUpdateKey
impl UnwindSafe for FeatureUpdateKey
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit)