#[non_exhaustive]pub struct CreateKeyRingRequest {
pub parent: String,
pub key_ring_id: String,
pub key_ring: Option<KeyRing>,
/* private fields */
}Expand description
Request message for KeyManagementService.CreateKeyRing.
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 resource name of the location associated with the
KeyRings, in the format
projects/*/locations/*.
key_ring_id: StringRequired. It must be unique within a location and match the regular
expression [a-zA-Z0-9_-]{1,63}
key_ring: Option<KeyRing>Required. A KeyRing with initial field values.
Implementations§
Source§impl CreateKeyRingRequest
impl CreateKeyRingRequest
pub fn new() -> Self
Sourcepub fn set_parent<T: Into<String>>(self, v: T) -> Self
pub fn set_parent<T: Into<String>>(self, v: T) -> Self
Sets the value of parent.
Sourcepub fn set_key_ring_id<T: Into<String>>(self, v: T) -> Self
pub fn set_key_ring_id<T: Into<String>>(self, v: T) -> Self
Sets the value of key_ring_id.
Sourcepub fn set_key_ring<T>(self, v: T) -> Self
pub fn set_key_ring<T>(self, v: T) -> Self
Sets the value of key_ring.
Trait Implementations§
Source§impl Clone for CreateKeyRingRequest
impl Clone for CreateKeyRingRequest
Source§fn clone(&self) -> CreateKeyRingRequest
fn clone(&self) -> CreateKeyRingRequest
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 CreateKeyRingRequest
impl Debug for CreateKeyRingRequest
Source§impl Default for CreateKeyRingRequest
impl Default for CreateKeyRingRequest
Source§fn default() -> CreateKeyRingRequest
fn default() -> CreateKeyRingRequest
Returns the “default value” for a type. Read more
Source§impl Message for CreateKeyRingRequest
impl Message for CreateKeyRingRequest
Source§impl PartialEq for CreateKeyRingRequest
impl PartialEq for CreateKeyRingRequest
impl StructuralPartialEq for CreateKeyRingRequest
Auto Trait Implementations§
impl Freeze for CreateKeyRingRequest
impl RefUnwindSafe for CreateKeyRingRequest
impl Send for CreateKeyRingRequest
impl Sync for CreateKeyRingRequest
impl Unpin for CreateKeyRingRequest
impl UnwindSafe for CreateKeyRingRequest
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