#[non_exhaustive]pub struct EnableFailure {
pub service_id: String,
pub error_message: String,
/* private fields */
}
Expand description
Provides error messages for the failing services.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.service_id: String
The service id of a service that could not be enabled.
error_message: String
An error message describing why the service could not be enabled.
Implementations§
Source§impl EnableFailure
impl EnableFailure
pub fn new() -> Self
Sourcepub fn set_service_id<T: Into<String>>(self, v: T) -> Self
pub fn set_service_id<T: Into<String>>(self, v: T) -> Self
Sets the value of service_id.
Sourcepub fn set_error_message<T: Into<String>>(self, v: T) -> Self
pub fn set_error_message<T: Into<String>>(self, v: T) -> Self
Sets the value of error_message.
Trait Implementations§
Source§impl Clone for EnableFailure
impl Clone for EnableFailure
Source§fn clone(&self) -> EnableFailure
fn clone(&self) -> EnableFailure
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 EnableFailure
impl Debug for EnableFailure
Source§impl Default for EnableFailure
impl Default for EnableFailure
Source§fn default() -> EnableFailure
fn default() -> EnableFailure
Returns the “default value” for a type. Read more
Source§impl Message for EnableFailure
impl Message for EnableFailure
Source§impl PartialEq for EnableFailure
impl PartialEq for EnableFailure
impl StructuralPartialEq for EnableFailure
Auto Trait Implementations§
impl Freeze for EnableFailure
impl RefUnwindSafe for EnableFailure
impl Send for EnableFailure
impl Sync for EnableFailure
impl Unpin for EnableFailure
impl UnwindSafe for EnableFailure
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