#[non_exhaustive]pub struct CreateKeyRequest {
pub parent: String,
pub key: Option<Key>,
/* private fields */
}Expand description
The create key request message.
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.parent: StringRequired. The name of the project in which the key is created, in the
format projects/{project}.
key: Option<Key>Required. Information to create a reCAPTCHA Enterprise key.
Implementations§
Source§impl CreateKeyRequest
impl CreateKeyRequest
Sourcepub fn set_parent<T: Into<String>>(self, v: T) -> Self
pub fn set_parent<T: Into<String>>(self, v: T) -> Self
Sourcepub fn set_or_clear_key<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_key<T>(self, v: Option<T>) -> Self
Trait Implementations§
Source§impl Clone for CreateKeyRequest
impl Clone for CreateKeyRequest
Source§fn clone(&self) -> CreateKeyRequest
fn clone(&self) -> CreateKeyRequest
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 CreateKeyRequest
impl Debug for CreateKeyRequest
Source§impl Default for CreateKeyRequest
impl Default for CreateKeyRequest
Source§fn default() -> CreateKeyRequest
fn default() -> CreateKeyRequest
Returns the “default value” for a type. Read more
Source§impl Message for CreateKeyRequest
impl Message for CreateKeyRequest
Source§impl PartialEq for CreateKeyRequest
impl PartialEq for CreateKeyRequest
impl StructuralPartialEq for CreateKeyRequest
Auto Trait Implementations§
impl Freeze for CreateKeyRequest
impl RefUnwindSafe for CreateKeyRequest
impl Send for CreateKeyRequest
impl Sync for CreateKeyRequest
impl Unpin for CreateKeyRequest
impl UnsafeUnpin for CreateKeyRequest
impl UnwindSafe for CreateKeyRequest
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