#[non_exhaustive]pub struct AddSecretVersionRequest {
pub parent: String,
pub payload: Option<SecretPayload>,
/* private fields */
}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
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
Sourcepub fn set_payload<T>(self, v: T) -> Selfwhere
T: Into<SecretPayload>,
pub fn set_payload<T>(self, v: T) -> Selfwhere
T: Into<SecretPayload>,
Sourcepub fn set_or_clear_payload<T>(self, v: Option<T>) -> Selfwhere
T: Into<SecretPayload>,
pub fn set_or_clear_payload<T>(self, v: Option<T>) -> Selfwhere
T: Into<SecretPayload>,
Trait Implementations§
Source§impl Clone for AddSecretVersionRequest
impl Clone for AddSecretVersionRequest
Source§fn clone(&self) -> AddSecretVersionRequest
fn clone(&self) -> AddSecretVersionRequest
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 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 Message for AddSecretVersionRequest
impl Message for AddSecretVersionRequest
Source§impl PartialEq for AddSecretVersionRequest
impl PartialEq 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 UnsafeUnpin 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