#[non_exhaustive]pub struct ImageStateChangeReasonBuilder { /* private fields */ }
Expand description
A builder for ImageStateChangeReason
.
Implementations§
source§impl ImageStateChangeReasonBuilder
impl ImageStateChangeReasonBuilder
sourcepub fn code(self, input: ImageStateChangeReasonCode) -> Self
pub fn code(self, input: ImageStateChangeReasonCode) -> Self
The state change reason code.
sourcepub fn set_code(self, input: Option<ImageStateChangeReasonCode>) -> Self
pub fn set_code(self, input: Option<ImageStateChangeReasonCode>) -> Self
The state change reason code.
sourcepub fn set_message(self, input: Option<String>) -> Self
pub fn set_message(self, input: Option<String>) -> Self
The state change reason message.
sourcepub fn build(self) -> ImageStateChangeReason
pub fn build(self) -> ImageStateChangeReason
Consumes the builder and constructs a ImageStateChangeReason
.
Trait Implementations§
source§impl Clone for ImageStateChangeReasonBuilder
impl Clone for ImageStateChangeReasonBuilder
source§fn clone(&self) -> ImageStateChangeReasonBuilder
fn clone(&self) -> ImageStateChangeReasonBuilder
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 Default for ImageStateChangeReasonBuilder
impl Default for ImageStateChangeReasonBuilder
source§fn default() -> ImageStateChangeReasonBuilder
fn default() -> ImageStateChangeReasonBuilder
Returns the “default value” for a type. Read more
source§impl PartialEq<ImageStateChangeReasonBuilder> for ImageStateChangeReasonBuilder
impl PartialEq<ImageStateChangeReasonBuilder> for ImageStateChangeReasonBuilder
source§fn eq(&self, other: &ImageStateChangeReasonBuilder) -> bool
fn eq(&self, other: &ImageStateChangeReasonBuilder) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.