pub struct CreateSecretRequest {
pub secret_name: String,
pub secret_value: String,
pub project_id: String,
pub environment: String,
pub path: Option<String>,
pub type: Option<String>,
pub secret_comment: Option<String>,
pub skip_multiline_encoding: Option<bool>,
}Expand description
Represents the parameters for a create secret request.
Use the CreateSecretRequest::builder() to construct this struct.
Fields§
§secret_name: String§secret_value: String§project_id: String§environment: String§path: Option<String>§type: Option<String>§secret_comment: Option<String>§skip_multiline_encoding: Option<bool>Implementations§
Source§impl CreateSecretRequest
impl CreateSecretRequest
Sourcepub fn builder<SN, SV, PID, E>(
secret_name: SN,
secret_value: SV,
project_id: PID,
environment: E,
) -> CreateSecretBuilder<SN, SV, PID, E>
pub fn builder<SN, SV, PID, E>( secret_name: SN, secret_value: SV, project_id: PID, environment: E, ) -> CreateSecretBuilder<SN, SV, PID, E>
Creates a new builder for a create secret request.
§Arguments
secret_name- The name of the secret to create.secret_value- The value of the secret to create.project_id- The ID of the project to insert the secret into.environment- The environment slug (e.g., “dev”, “prod”).
Trait Implementations§
Source§impl Clone for CreateSecretRequest
impl Clone for CreateSecretRequest
Source§fn clone(&self) -> CreateSecretRequest
fn clone(&self) -> CreateSecretRequest
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for CreateSecretRequest
impl RefUnwindSafe for CreateSecretRequest
impl Send for CreateSecretRequest
impl Sync for CreateSecretRequest
impl Unpin for CreateSecretRequest
impl UnsafeUnpin 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