pub struct Release {
Show 27 fields pub links: Option<Value>, pub artifacts: Vec<Artifact>, pub comment: Option<String>, pub created_by: Option<IdentityRef>, pub created_for: Option<IdentityRef>, pub created_on: Option<OffsetDateTime>, pub definition_snapshot_revision: Option<i32>, pub description: Option<String>, pub environments: Vec<ReleaseEnvironment>, pub id: Option<i32>, pub keep_forever: Option<bool>, pub logs_container_url: Option<String>, pub modified_by: Option<IdentityRef>, pub modified_on: Option<OffsetDateTime>, pub name: Option<String>, pub pool_name: Option<String>, pub project_reference: Option<ProjectReference>, pub properties: Option<PropertiesCollection>, pub reason: Option<Reason>, pub release_definition: Option<ReleaseDefinitionShallowReference>, pub release_definition_revision: Option<i32>, pub release_name_format: Option<String>, pub status: Option<Status>, pub tags: Vec<String>, pub triggering_artifact_alias: Option<String>, pub variable_groups: Vec<VariableGroup>, pub variables: Option<Value>,
}
Expand description

Fields§

§links: Option<Value>

Links

§artifacts: Vec<Artifact>

Gets or sets the list of artifacts.

§comment: Option<String>

Gets or sets comment.

§created_by: Option<IdentityRef>
§created_for: Option<IdentityRef>
§created_on: Option<OffsetDateTime>

Gets date on which it got created.

§definition_snapshot_revision: Option<i32>

Gets revision number of definition snapshot.

§description: Option<String>

Gets or sets description of release.

§environments: Vec<ReleaseEnvironment>

Gets list of environments.

§id: Option<i32>

Gets the unique identifier of this field.

§keep_forever: Option<bool>

Whether to exclude the release from retention policies.

§logs_container_url: Option<String>

Gets logs container url.

§modified_by: Option<IdentityRef>
§modified_on: Option<OffsetDateTime>

Gets date on which it got modified.

§name: Option<String>

Gets name.

§pool_name: Option<String>

Gets pool name.

§project_reference: Option<ProjectReference>
§properties: Option<PropertiesCollection>

The class represents a property bag as a collection of key-value pairs. Values of all primitive types (any type with a TypeCode != TypeCode.Object) except for DBNull are accepted. Values of type Byte[], Int32, Double, DateType and String preserve their type, other primitives are retuned as a String. Byte[] expected as base64 encoded string.

§reason: Option<Reason>

Gets reason of release.

§release_definition: Option<ReleaseDefinitionShallowReference>
§release_definition_revision: Option<i32>

Gets or sets the release definition revision.

§release_name_format: Option<String>

Gets release name format.

§status: Option<Status>

Gets status.

§tags: Vec<String>

Gets or sets list of tags.

§triggering_artifact_alias: Option<String>§variable_groups: Vec<VariableGroup>

Gets the list of variable groups.

§variables: Option<Value>

Gets or sets the dictionary of variables.

Implementations§

source§

impl Release

source

pub fn new() -> Self

Trait Implementations§

source§

impl Clone for Release

source§

fn clone(&self) -> Release

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for Release

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Default for Release

source§

fn default() -> Release

Returns the “default value” for a type. Read more
source§

impl<'de> Deserialize<'de> for Release

source§

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 PartialEq for Release

source§

fn eq(&self, other: &Release) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl Serialize for Release

source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>where __S: Serializer,

Serialize this value into the given Serde serializer. Read more
source§

impl StructuralPartialEq for Release

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> DynClone for Twhere T: Clone,

source§

fn __clone_box(&self, _: Private) -> *mut ()

source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

§

impl<T> Instrument for T

§

fn instrument(self, span: Span) -> Instrumented<Self>

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

fn in_current_span(self) -> Instrumented<Self>

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

impl<T, U> Into<U> for Twhere U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

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

source§

impl<T> ToOwned for Twhere T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for Twhere U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for Twhere V: MultiLane<T>,

§

fn vzip(self) -> V

§

impl<T> WithSubscriber for T

§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where S: Into<Dispatch>,

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

fn with_current_subscriber(self) -> WithDispatch<Self>

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

impl<T> DeserializeOwned for Twhere T: for<'de> Deserialize<'de>,