#[non_exhaustive]pub struct CheckInfo {
pub unused_arguments: Vec<String>,
pub consumer_info: Option<ConsumerInfo>,
pub api_key_uid: String,
}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_consumer_info<T: Into<Option<ConsumerInfo>>>(self, v: T) -> Self
pub fn set_consumer_info<T: Into<Option<ConsumerInfo>>>(self, v: T) -> Self
Sets 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.
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.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for CheckInfo
impl<'de> Deserialize<'de> for CheckInfo
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 CheckInfo
impl Message for CheckInfo
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