#[non_exhaustive]pub struct CheckInfo {
pub unused_arguments: Vec<String>,
pub consumer_info: Option<ConsumerInfo>,
pub api_key_uid: String,
/* private fields */
}Expand description
Contains additional information about the check operation.
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.unused_arguments: Vec<String>A list of fields and label keys that are ignored by the server. The client doesn’t need to send them for following requests to improve performance and allow better aggregation.
consumer_info: Option<ConsumerInfo>Consumer info of this check.
api_key_uid: StringThe unique id of the api key in the format of “apikey:<UID>”. This field will be populated when the consumer passed to Service Control is an API key and all the API key related validations are successful.
Implementations§
Source§impl CheckInfo
impl CheckInfo
pub fn new() -> Self
Sourcepub fn set_unused_arguments<T, V>(self, v: T) -> Self
pub fn set_unused_arguments<T, V>(self, v: T) -> Self
Sets the value of unused_arguments.
Sourcepub fn set_consumer_info<T>(self, v: T) -> Selfwhere
T: Into<ConsumerInfo>,
pub fn set_consumer_info<T>(self, v: T) -> Selfwhere
T: Into<ConsumerInfo>,
Sets the value of consumer_info.
Sourcepub fn set_or_clear_consumer_info<T>(self, v: Option<T>) -> Selfwhere
T: Into<ConsumerInfo>,
pub fn set_or_clear_consumer_info<T>(self, v: Option<T>) -> Selfwhere
T: Into<ConsumerInfo>,
Sets or clears the value of consumer_info.
Sourcepub fn set_api_key_uid<T: Into<String>>(self, v: T) -> Self
pub fn set_api_key_uid<T: Into<String>>(self, v: T) -> Self
Sets the value of api_key_uid.
Trait Implementations§
impl StructuralPartialEq for CheckInfo
Auto Trait Implementations§
impl Freeze for CheckInfo
impl RefUnwindSafe for CheckInfo
impl Send for CheckInfo
impl Sync for CheckInfo
impl Unpin for CheckInfo
impl UnwindSafe for CheckInfo
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