pub struct UpdatableFeatureResult {
pub name: String,
pub error_code: i16,
pub error_message: Option<String>,
}Expand description
Per-feature result of UpdateFeatures v0.
Self::error is Java UpdateFeaturesResponse.createWithErrors one
result (filled only when the top-level error is ApiError.NONE).
Fields§
§name: StringTopic, resource, group, or feature name.
error_code: i16Kafka error code (0 is success).
error_message: Option<String>Broker error message, when present.
Implementations§
Source§impl UpdatableFeatureResult
impl UpdatableFeatureResult
Sourcepub fn error(name: impl Into<String>, error_code: i16) -> Self
pub fn error(name: impl Into<String>, error_code: i16) -> Self
Java UpdateFeaturesResponse.createWithErrors one result.
Sets Feature and ErrorCode. ErrorMessage is the JSON default
(null); official Java also sets the English Errors.message
string when the top-level error is not NONE. Java fills Results
only when that top-level error is NONE.
Sourcepub fn error_code(&self) -> i16
pub fn error_code(&self) -> i16
Kafka error code (0 is success).
Sourcepub fn error_message(&self) -> Option<&str>
pub fn error_message(&self) -> Option<&str>
Broker error message, when present.
Trait Implementations§
Source§impl Clone for UpdatableFeatureResult
impl Clone for UpdatableFeatureResult
Source§fn clone(&self) -> UpdatableFeatureResult
fn clone(&self) -> UpdatableFeatureResult
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 UpdatableFeatureResult
impl Debug for UpdatableFeatureResult
impl Eq for UpdatableFeatureResult
Source§impl PartialEq for UpdatableFeatureResult
impl PartialEq for UpdatableFeatureResult
impl StructuralPartialEq for UpdatableFeatureResult
Auto Trait Implementations§
impl Freeze for UpdatableFeatureResult
impl RefUnwindSafe for UpdatableFeatureResult
impl Send for UpdatableFeatureResult
impl Sync for UpdatableFeatureResult
impl Unpin for UpdatableFeatureResult
impl UnsafeUnpin for UpdatableFeatureResult
impl UnwindSafe for UpdatableFeatureResult
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