pub struct VariableOptions {
pub protected: bool,
pub masked: bool,
pub raw: bool,
pub variable_type: VariableType,
pub environment_scope: Option<String>,
pub description: Option<String>,
}Expand description
Options for creating or updating a CI/CD variable.
Fields§
§protected: boolWhether the variable is protected
masked: boolWhether to mask the value in logs
raw: boolWhether to disable variable expansion
variable_type: VariableTypeType of variable
environment_scope: Option<String>Environment scope
description: Option<String>Variable description
Implementations§
Source§impl VariableOptions
impl VariableOptions
Sourcepub fn variable_type(self, variable_type: VariableType) -> Self
pub fn variable_type(self, variable_type: VariableType) -> Self
Set the variable type.
Sourcepub fn environment_scope(self, scope: impl Into<String>) -> Self
pub fn environment_scope(self, scope: impl Into<String>) -> Self
Set the environment scope.
Sourcepub fn description(self, description: impl Into<String>) -> Self
pub fn description(self, description: impl Into<String>) -> Self
Set the description.
Trait Implementations§
Source§impl Clone for VariableOptions
impl Clone for VariableOptions
Source§fn clone(&self) -> VariableOptions
fn clone(&self) -> VariableOptions
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 VariableOptions
impl Debug for VariableOptions
Source§impl Default for VariableOptions
impl Default for VariableOptions
Source§fn default() -> VariableOptions
fn default() -> VariableOptions
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for VariableOptions
impl RefUnwindSafe for VariableOptions
impl Send for VariableOptions
impl Sync for VariableOptions
impl Unpin for VariableOptions
impl UnwindSafe for VariableOptions
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more