#[non_exhaustive]pub struct AddSecretVersionRequest {
pub parent: String,
pub payload: Option<SecretPayload>,
}Expand description
Request message for SecretManagerService.AddSecretVersion.
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
Secret to associate with the
SecretVersion in the format
projects/*/secrets/* or projects/*/locations/*/secrets/*.
payload: Option<SecretPayload>Required. The secret payload of the SecretVersion.
Implementations§
Source§impl AddSecretVersionRequest
impl AddSecretVersionRequest
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_payload<T: Into<Option<SecretPayload>>>(self, v: T) -> Self
pub fn set_payload<T: Into<Option<SecretPayload>>>(self, v: T) -> Self
Sets the value of payload.
Trait Implementations§
Source§impl Clone for AddSecretVersionRequest
impl Clone for AddSecretVersionRequest
Source§fn clone(&self) -> AddSecretVersionRequest
fn clone(&self) -> AddSecretVersionRequest
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 AddSecretVersionRequest
impl Debug for AddSecretVersionRequest
Source§impl Default for AddSecretVersionRequest
impl Default for AddSecretVersionRequest
Source§fn default() -> AddSecretVersionRequest
fn default() -> AddSecretVersionRequest
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for AddSecretVersionRequestwhere
AddSecretVersionRequest: Default,
impl<'de> Deserialize<'de> for AddSecretVersionRequestwhere
AddSecretVersionRequest: 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 AddSecretVersionRequest
impl Message for AddSecretVersionRequest
Source§impl PartialEq for AddSecretVersionRequest
impl PartialEq for AddSecretVersionRequest
Source§impl Serialize for AddSecretVersionRequest
impl Serialize for AddSecretVersionRequest
impl StructuralPartialEq for AddSecretVersionRequest
Auto Trait Implementations§
impl !Freeze for AddSecretVersionRequest
impl RefUnwindSafe for AddSecretVersionRequest
impl Send for AddSecretVersionRequest
impl Sync for AddSecretVersionRequest
impl Unpin for AddSecretVersionRequest
impl UnwindSafe for AddSecretVersionRequest
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