pub struct OwnerControlApplyConfigResponse {
pub success: bool,
pub current_revision: u64,
pub config_hash: Vec<u8>,
pub error: Option<String>,
pub apply_mode: i32,
}Fields§
§success: bool§current_revision: u64§config_hash: Vec<u8>§error: Option<String>§apply_mode: i32Implementations§
Source§impl OwnerControlApplyConfigResponse
impl OwnerControlApplyConfigResponse
Sourcepub fn error(&self) -> &str
pub fn error(&self) -> &str
Returns the value of error, or the default value if error is unset.
Sourcepub fn apply_mode(&self) -> ConfigApplyMode
pub fn apply_mode(&self) -> ConfigApplyMode
Returns the enum value of apply_mode, or the default if the field is set to an invalid enum value.
Sourcepub fn set_apply_mode(&mut self, value: ConfigApplyMode)
pub fn set_apply_mode(&mut self, value: ConfigApplyMode)
Sets apply_mode to the provided enum value.
Trait Implementations§
Source§impl Clone for OwnerControlApplyConfigResponse
impl Clone for OwnerControlApplyConfigResponse
Source§fn clone(&self) -> OwnerControlApplyConfigResponse
fn clone(&self) -> OwnerControlApplyConfigResponse
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 Default for OwnerControlApplyConfigResponse
impl Default for OwnerControlApplyConfigResponse
Source§fn default() -> OwnerControlApplyConfigResponse
fn default() -> OwnerControlApplyConfigResponse
Returns the “default value” for a type. Read more
Source§impl Message for OwnerControlApplyConfigResponse
impl Message for OwnerControlApplyConfigResponse
Source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
Returns the encoded length of the message without a length delimiter.
Source§fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
Encodes the message to a buffer. Read more
Source§fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Encodes the message to a newly allocated buffer.
Source§fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
Encodes the message with a length-delimiter to a buffer. Read more
Source§fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Encodes the message with a length-delimiter to a newly allocated buffer.
Source§fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Decodes an instance of the message from a buffer. Read more
Source§fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Decodes a length-delimited instance of the message from the buffer.
Source§fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
Decodes an instance of the message from a buffer, and merges it into
self. Read moreSource§fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
Decodes a length-delimited instance of the message from buffer, and
merges it into
self.Source§impl PartialEq for OwnerControlApplyConfigResponse
impl PartialEq for OwnerControlApplyConfigResponse
Source§fn eq(&self, other: &OwnerControlApplyConfigResponse) -> bool
fn eq(&self, other: &OwnerControlApplyConfigResponse) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl ValidateControlFrame for OwnerControlApplyConfigResponse
impl ValidateControlFrame for OwnerControlApplyConfigResponse
fn validate_frame(&self) -> Result<(), ControlFrameError>
impl StructuralPartialEq for OwnerControlApplyConfigResponse
Auto Trait Implementations§
impl Freeze for OwnerControlApplyConfigResponse
impl RefUnwindSafe for OwnerControlApplyConfigResponse
impl Send for OwnerControlApplyConfigResponse
impl Sync for OwnerControlApplyConfigResponse
impl Unpin for OwnerControlApplyConfigResponse
impl UnsafeUnpin for OwnerControlApplyConfigResponse
impl UnwindSafe for OwnerControlApplyConfigResponse
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<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more