#[non_exhaustive]pub struct CreateKeyRequest {
pub parent: String,
pub key: Option<Key>,
pub key_id: String,
/* private fields */
}Expand description
Request message for CreateKey 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.parent: StringRequired. The project in which the API key is created.
key: Option<Key>Required. The API key fields to set at creation time.
You can configure only the display_name, restrictions, and
annotations fields.
key_id: StringUser specified key id (optional). If specified, it will become the final component of the key resource name.
The id must be unique within the project, must conform with RFC-1034,
is restricted to lower-cased letters, and has a maximum length of 63
characters. In another word, the id must match the regular
expression: [a-z]([a-z0-9-]{0,61}[a-z0-9])?.
The id must NOT be a UUID-like string.
Implementations§
Source§impl CreateKeyRequest
impl CreateKeyRequest
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 · 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