#[non_exhaustive]pub struct CheckError {
pub code: Code,
pub subject: String,
pub detail: String,
pub status: Option<Status>,
}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
Trait Implementations§
Source§impl Clone for CheckError
impl Clone for CheckError
Source§fn clone(&self) -> CheckError
fn clone(&self) -> CheckError
Returns a copy 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<'de> Deserialize<'de> for CheckErrorwhere
CheckError: Default,
impl<'de> Deserialize<'de> for CheckErrorwhere
CheckError: Default,
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Message for CheckError
impl Message for CheckError
Source§impl PartialEq for CheckError
impl PartialEq for CheckError
Source§impl Serialize for CheckError
impl Serialize 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