Struct azure_devops_rust_api::build::models::Build

source ·
pub struct Build {
Show 45 fields pub links: Option<ReferenceLinks>, pub agent_specification: Option<AgentSpecification>, pub append_commit_message_to_run_name: Option<bool>, pub build_number: Option<String>, pub build_number_revision: Option<i32>, pub controller: Option<BuildController>, pub definition: DefinitionReference, pub deleted: Option<bool>, pub deleted_by: Option<IdentityRef>, pub deleted_date: Option<OffsetDateTime>, pub deleted_reason: Option<String>, pub demands: Vec<Demand>, pub finish_time: Option<OffsetDateTime>, pub id: i32, pub last_changed_by: Option<IdentityRef>, pub last_changed_date: Option<OffsetDateTime>, pub logs: Option<BuildLogReference>, pub orchestration_plan: Option<TaskOrchestrationPlanReference>, pub parameters: Option<String>, pub plans: Vec<TaskOrchestrationPlanReference>, pub priority: Priority, pub project: TeamProjectReference, pub properties: Option<PropertiesCollection>, pub quality: Option<String>, pub queue: Option<AgentPoolQueue>, pub queue_options: Option<QueueOptions>, pub queue_position: Option<i32>, pub queue_time: Option<OffsetDateTime>, pub reason: Reason, pub repository: Option<BuildRepository>, pub requested_by: Option<IdentityRef>, pub requested_for: Option<IdentityRef>, pub result: Option<Result>, pub retained_by_release: Option<bool>, pub source_branch: Option<String>, pub source_version: Option<String>, pub start_time: Option<OffsetDateTime>, pub status: Option<Status>, pub tags: Vec<String>, pub template_parameters: Option<Value>, pub triggered_by_build: Box<Option<Build>>, pub trigger_info: Option<Value>, pub uri: Option<String>, pub url: Option<String>, pub validation_results: Vec<BuildRequestValidationResult>,
}
Expand description

Data representation of a build.

Fields§

§links: Option<ReferenceLinks>

The class to represent a collection of REST reference links.

§agent_specification: Option<AgentSpecification>

Specification of the agent defined by the pool provider.

§append_commit_message_to_run_name: Option<bool>

Append Commit Message To BuildNumber in UI.

§build_number: Option<String>

The build number/name of the build.

§build_number_revision: Option<i32>

The build number revision.

§controller: Option<BuildController>
§definition: DefinitionReference

Represents a reference to a definition.

§deleted: Option<bool>

Indicates whether the build has been deleted.

§deleted_by: Option<IdentityRef>
§deleted_date: Option<OffsetDateTime>

The date the build was deleted.

§deleted_reason: Option<String>

The description of how the build was deleted.

§demands: Vec<Demand>

A list of demands that represents the agent capabilities required by this build.

§finish_time: Option<OffsetDateTime>

The time that the build was completed.

§id: i32

The ID of the build.

§last_changed_by: Option<IdentityRef>
§last_changed_date: Option<OffsetDateTime>

The date the build was last changed.

§logs: Option<BuildLogReference>

Represents a reference to a build log.

§orchestration_plan: Option<TaskOrchestrationPlanReference>

Represents a reference to an orchestration plan.

§parameters: Option<String>

The parameters for the build.

§plans: Vec<TaskOrchestrationPlanReference>

Orchestration plans associated with the build (build, cleanup)

§priority: Priority

The build’s priority.

§project: TeamProjectReference

Represents a shallow reference to a TeamProject.

§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.

§quality: Option<String>

The quality of the xaml build (good, bad, etc.)

§queue: Option<AgentPoolQueue>

Represents a queue for running builds.

§queue_options: Option<QueueOptions>

Additional options for queueing the build.

§queue_position: Option<i32>

The current position of the build in the queue.

§queue_time: Option<OffsetDateTime>

The time that the build was queued.

§reason: Reason

The reason that the build was created.

§repository: Option<BuildRepository>

Represents a repository used by a build definition.

§requested_by: Option<IdentityRef>
§requested_for: Option<IdentityRef>
§result: Option<Result>

The build result.

§retained_by_release: Option<bool>

Indicates whether the build is retained by a release.

§source_branch: Option<String>

The source branch.

§source_version: Option<String>

The source version.

§start_time: Option<OffsetDateTime>

The time that the build was started.

§status: Option<Status>

The status of the build.

§tags: Vec<String>§template_parameters: Option<Value>

Parameters to template expression evaluation

§triggered_by_build: Box<Option<Build>>

Data representation of a build.

§trigger_info: Option<Value>

Sourceprovider-specific information about what triggered the build

§uri: Option<String>

The URI of the build.

§url: Option<String>

The REST URL of the build.

§validation_results: Vec<BuildRequestValidationResult>

Implementations§

source§

impl Build

source

pub fn new( definition: DefinitionReference, id: i32, priority: Priority, project: TeamProjectReference, reason: Reason ) -> Self

Trait Implementations§

source§

impl Clone for Build

source§

fn clone(&self) -> Build

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 Build

source§

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

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

impl<'de> Deserialize<'de> for Build

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 Build

source§

fn eq(&self, other: &Build) -> 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 Build

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 Build

Auto Trait Implementations§

§

impl Freeze for Build

§

impl RefUnwindSafe for Build

§

impl Send for Build

§

impl Sync for Build

§

impl Unpin for Build

§

impl UnwindSafe for Build

Blanket Implementations§

source§

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

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

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

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

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

source§

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

Mutably borrows from an owned value. Read more
source§

impl<T> DynClone for T
where 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.

source§

impl<T> Instrument for T

source§

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

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

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 T
where 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 T
where 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 T
where 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 T
where 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.
source§

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

source§

fn vzip(self) -> V

source§

impl<T> WithSubscriber for T

source§

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
source§

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 T
where T: for<'de> Deserialize<'de>,