#[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
impl StructuralPartialEq for CurrentRevisionBuilder
Auto Trait Implementations§
impl Freeze for CurrentRevisionBuilder
impl RefUnwindSafe for CurrentRevisionBuilder
impl Send for CurrentRevisionBuilder
impl Sync for CurrentRevisionBuilder
impl Unpin for CurrentRevisionBuilder
impl UnwindSafe for CurrentRevisionBuilder
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more