Struct azure_devops_rust_api::build::models::DefinitionReference
source · pub struct DefinitionReference {
pub created_date: Option<OffsetDateTime>,
pub id: i32,
pub name: Option<String>,
pub path: Option<String>,
pub project: TeamProjectReference,
pub queue_status: QueueStatus,
pub revision: i32,
pub type_: Option<Type>,
pub uri: Option<String>,
pub url: String,
}Expand description
Represents a reference to a definition.
Fields§
§created_date: Option<OffsetDateTime>The date this version of the definition was created.
id: i32The ID of the referenced definition.
name: Option<String>The name of the referenced definition.
path: Option<String>The folder path of the definition.
project: TeamProjectReferenceRepresents a shallow reference to a TeamProject.
queue_status: QueueStatusA value that indicates whether builds can be queued against this definition.
revision: i32The definition revision number.
type_: Option<Type>The type of the definition.
uri: Option<String>The definition’s URI.
url: StringThe REST URL of the definition.
Implementations§
source§impl DefinitionReference
impl DefinitionReference
pub fn new( id: i32, project: TeamProjectReference, queue_status: QueueStatus, revision: i32, url: String ) -> Self
Trait Implementations§
source§impl Clone for DefinitionReference
impl Clone for DefinitionReference
source§fn clone(&self) -> DefinitionReference
fn clone(&self) -> DefinitionReference
Returns a copy 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 DefinitionReference
impl Debug for DefinitionReference
source§impl<'de> Deserialize<'de> for DefinitionReference
impl<'de> Deserialize<'de> for DefinitionReference
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
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 DefinitionReference
impl PartialEq for DefinitionReference
source§fn eq(&self, other: &DefinitionReference) -> bool
fn eq(&self, other: &DefinitionReference) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl Serialize for DefinitionReference
impl Serialize for DefinitionReference
impl StructuralPartialEq for DefinitionReference
Auto Trait Implementations§
impl Freeze for DefinitionReference
impl RefUnwindSafe for DefinitionReference
impl Send for DefinitionReference
impl Sync for DefinitionReference
impl Unpin for DefinitionReference
impl UnwindSafe for DefinitionReference
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