pub struct Variable<'a> { /* private fields */ }
Expand description

Gitlab job environment variable

To get the underlying value Variable::value should be used, however this should not be directly displayed in the log. For displaying to the user the Variable’s Display implementation should be used (e.g. via {} as that will show the value taking the masked status into account

Implementations

Get the key of the variable

Get the value of the variable

Whether or not the variable is masked

Whether or not the variable is public

Trait Implementations

Formats the value using the given formatter. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more

Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Should always be Self

Converts the given value to a String. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more