#[non_exhaustive]pub struct CheckResponse {
pub status: Option<Status>,
pub headers: HashMap<String, String>,
/* private fields */
}
Expand description
Response message for the Check method.
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.status: Option<Status>
Operation is allowed when this field is not set. Any non-‘OK’ status indicates a denial; google.rpc.Status.details would contain additional details about the denial.
headers: HashMap<String, String>
Returns a set of request contexts generated from the CheckRequest
.
Implementations§
Source§impl CheckResponse
impl CheckResponse
pub fn new() -> Self
Sourcepub fn set_status<T>(self, v: T) -> Self
pub fn set_status<T>(self, v: T) -> Self
Sets the value of status.
Sourcepub fn set_or_clear_status<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_status<T>(self, v: Option<T>) -> Self
Sets or clears the value of status.
Sourcepub fn set_headers<T, K, V>(self, v: T) -> Self
pub fn set_headers<T, K, V>(self, v: T) -> Self
Sets the value of headers.
Trait Implementations§
Source§impl Clone for CheckResponse
impl Clone for CheckResponse
Source§fn clone(&self) -> CheckResponse
fn clone(&self) -> CheckResponse
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 CheckResponse
impl Debug for CheckResponse
Source§impl Default for CheckResponse
impl Default for CheckResponse
Source§fn default() -> CheckResponse
fn default() -> CheckResponse
Returns the “default value” for a type. Read more
Source§impl Message for CheckResponse
impl Message for CheckResponse
Source§impl PartialEq for CheckResponse
impl PartialEq for CheckResponse
impl StructuralPartialEq for CheckResponse
Auto Trait Implementations§
impl Freeze for CheckResponse
impl RefUnwindSafe for CheckResponse
impl Send for CheckResponse
impl Sync for CheckResponse
impl Unpin for CheckResponse
impl UnwindSafe for CheckResponse
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