#[non_exhaustive]pub struct CurrentRevisionBuilder { /* private fields */ }
Expand description
A builder for CurrentRevision
.
Implementations§
source§impl CurrentRevisionBuilder
impl CurrentRevisionBuilder
sourcepub fn revision(self, input: impl Into<String>) -> Self
pub fn revision(self, input: impl Into<String>) -> Self
The revision ID of the current version of an artifact.
This field is required.sourcepub fn set_revision(self, input: Option<String>) -> Self
pub fn set_revision(self, input: Option<String>) -> Self
The revision ID of the current version of an artifact.
sourcepub fn get_revision(&self) -> &Option<String>
pub fn get_revision(&self) -> &Option<String>
The revision ID of the current version of an artifact.
sourcepub fn change_identifier(self, input: impl Into<String>) -> Self
pub fn change_identifier(self, input: impl Into<String>) -> Self
The change identifier for the current revision.
This field is required.sourcepub fn set_change_identifier(self, input: Option<String>) -> Self
pub fn set_change_identifier(self, input: Option<String>) -> Self
The change identifier for the current revision.
sourcepub fn get_change_identifier(&self) -> &Option<String>
pub fn get_change_identifier(&self) -> &Option<String>
The change identifier for the current revision.
sourcepub fn created(self, input: DateTime) -> Self
pub fn created(self, input: DateTime) -> Self
The date and time when the most recent revision of the artifact was created, in timestamp format.
sourcepub fn set_created(self, input: Option<DateTime>) -> Self
pub fn set_created(self, input: Option<DateTime>) -> Self
The date and time when the most recent revision of the artifact was created, in timestamp format.
sourcepub fn get_created(&self) -> &Option<DateTime>
pub fn get_created(&self) -> &Option<DateTime>
The date and time when the most recent revision of the artifact was created, in timestamp format.
sourcepub fn revision_summary(self, input: impl Into<String>) -> Self
pub fn revision_summary(self, input: impl Into<String>) -> Self
The summary of the most recent revision of the artifact.
sourcepub fn set_revision_summary(self, input: Option<String>) -> Self
pub fn set_revision_summary(self, input: Option<String>) -> Self
The summary of the most recent revision of the artifact.
sourcepub fn get_revision_summary(&self) -> &Option<String>
pub fn get_revision_summary(&self) -> &Option<String>
The summary of the most recent revision of the artifact.
sourcepub fn build(self) -> Result<CurrentRevision, BuildError>
pub fn build(self) -> Result<CurrentRevision, BuildError>
Consumes the builder and constructs a CurrentRevision
.
This method will fail if any of the following fields are not set:
Trait Implementations§
source§impl Clone for CurrentRevisionBuilder
impl Clone for CurrentRevisionBuilder
source§fn clone(&self) -> CurrentRevisionBuilder
fn clone(&self) -> CurrentRevisionBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for CurrentRevisionBuilder
impl Debug for CurrentRevisionBuilder
source§impl Default for CurrentRevisionBuilder
impl Default for CurrentRevisionBuilder
source§fn default() -> CurrentRevisionBuilder
fn default() -> CurrentRevisionBuilder
source§impl PartialEq for CurrentRevisionBuilder
impl PartialEq for CurrentRevisionBuilder
source§fn eq(&self, other: &CurrentRevisionBuilder) -> bool
fn eq(&self, other: &CurrentRevisionBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.