#[non_exhaustive]pub struct CheckError {
pub code: Code,
pub subject: String,
pub detail: String,
pub status: Option<Status>,
/* private fields */
}Expand description
Defines the errors to be returned in google.api.servicecontrol.v1.CheckResponse.check_errors.
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.code: CodeThe error code.
subject: StringSubject to whom this error applies. See the specific code enum for more details on this field. For example:
- “project:<project-id or project-number>”
- “folder:<folder-id>”
- “organization:<organization-id>”
detail: StringFree-form text providing details on the error cause of the error.
status: Option<Status>Contains public information about the check error. If available,
status.code will be non zero and client can propagate it out as public
error.
Implementations§
Source§impl CheckError
impl CheckError
pub fn new() -> Self
Sourcepub fn set_subject<T: Into<String>>(self, v: T) -> Self
pub fn set_subject<T: Into<String>>(self, v: T) -> Self
Sets the value of subject.
Sourcepub fn set_detail<T: Into<String>>(self, v: T) -> Self
pub fn set_detail<T: Into<String>>(self, v: T) -> Self
Sets the value of detail.
Sourcepub fn set_status<T>(self, v: T) -> Self
pub fn set_status<T>(self, v: T) -> Self
Sets the value of status.
Trait Implementations§
Source§impl Clone for CheckError
impl Clone for CheckError
Source§fn clone(&self) -> CheckError
fn clone(&self) -> CheckError
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 CheckError
impl Debug for CheckError
Source§impl Default for CheckError
impl Default for CheckError
Source§fn default() -> CheckError
fn default() -> CheckError
Returns the “default value” for a type. Read more
Source§impl PartialEq for CheckError
impl PartialEq for CheckError
impl StructuralPartialEq for CheckError
Auto Trait Implementations§
impl Freeze for CheckError
impl RefUnwindSafe for CheckError
impl Send for CheckError
impl Sync for CheckError
impl Unpin for CheckError
impl UnwindSafe for CheckError
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