#[non_exhaustive]pub struct GenericOperationError {
pub message: Option<String>,
pub status_code: Option<i32>,
pub details: Option<Error>,
}Expand description
Details about a generic long-running operation error.
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.message: Option<String>The HTTP error message.
status_code: Option<i32>The HTTP error status code.
details: Option<Error>The errors generated while processing the operation.
Implementations§
Source§impl GenericOperationError
impl GenericOperationError
Sourcepub fn set_message<V: Into<String>>(self, v: V) -> Self
pub fn set_message<V: Into<String>>(self, v: V) -> Self
Sourcepub fn set_status_code(self, v: i32) -> Self
pub fn set_status_code(self, v: i32) -> Self
Sourcepub fn set_details<V: Into<Error>>(self, v: V) -> Self
pub fn set_details<V: Into<Error>>(self, v: V) -> Self
Trait Implementations§
Source§impl Clone for GenericOperationError
impl Clone for GenericOperationError
Source§fn clone(&self) -> GenericOperationError
fn clone(&self) -> GenericOperationError
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 GenericOperationError
impl Debug for GenericOperationError
Source§impl Default for GenericOperationError
impl Default for GenericOperationError
Source§fn default() -> GenericOperationError
fn default() -> GenericOperationError
Returns the “default value” for a type. Read more
Source§impl PartialEq for GenericOperationError
impl PartialEq for GenericOperationError
impl StructuralPartialEq for GenericOperationError
Auto Trait Implementations§
impl Freeze for GenericOperationError
impl RefUnwindSafe for GenericOperationError
impl Send for GenericOperationError
impl Sync for GenericOperationError
impl Unpin for GenericOperationError
impl UnwindSafe for GenericOperationError
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