#[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: StrBytes
The name of the finalized feature to be updated.
Supported API versions: 0-1
max_version_level: i16
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
allow_downgrade: bool
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
upgrade_type: i8
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
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.