#[non_exhaustive]pub struct CreateSecretRequest {
pub parent: String,
pub secret_id: String,
pub secret: Option<Secret>,
}Expand description
Request message for SecretManagerService.CreateSecret.
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 project to associate with the
Secret, in the format projects/*
or projects/*/locations/*.
secret_id: StringRequired. This must be unique within the project.
A secret ID is a string with a maximum length of 255 characters and can
contain uppercase and lowercase letters, numerals, and the hyphen (-) and
underscore (_) characters.
secret: Option<Secret>Required. A Secret with initial field values.
Implementations§
Trait Implementations§
Source§impl Clone for CreateSecretRequest
impl Clone for CreateSecretRequest
Source§fn clone(&self) -> CreateSecretRequest
fn clone(&self) -> CreateSecretRequest
Returns a copy 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 CreateSecretRequest
impl Debug for CreateSecretRequest
Source§impl Default for CreateSecretRequest
impl Default for CreateSecretRequest
Source§fn default() -> CreateSecretRequest
fn default() -> CreateSecretRequest
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for CreateSecretRequestwhere
CreateSecretRequest: Default,
impl<'de> Deserialize<'de> for CreateSecretRequestwhere
CreateSecretRequest: Default,
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 CreateSecretRequest
impl Message for CreateSecretRequest
Source§impl PartialEq for CreateSecretRequest
impl PartialEq for CreateSecretRequest
Source§impl Serialize for CreateSecretRequest
impl Serialize for CreateSecretRequest
impl StructuralPartialEq for CreateSecretRequest
Auto Trait Implementations§
impl Freeze for CreateSecretRequest
impl RefUnwindSafe for CreateSecretRequest
impl Send for CreateSecretRequest
impl Sync for CreateSecretRequest
impl Unpin for CreateSecretRequest
impl UnwindSafe for CreateSecretRequest
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