#[non_exhaustive]pub struct EndpointStateBuilder { /* private fields */ }Expand description
A builder for EndpointState.
Implementations§
source§impl EndpointStateBuilder
impl EndpointStateBuilder
sourcepub fn status(self, input: EndpointStatus) -> Self
pub fn status(self, input: EndpointStatus) -> Self
Enum that indicates the Status of an AppInstanceUserEndpoint.
sourcepub fn set_status(self, input: Option<EndpointStatus>) -> Self
pub fn set_status(self, input: Option<EndpointStatus>) -> Self
Enum that indicates the Status of an AppInstanceUserEndpoint.
sourcepub fn get_status(&self) -> &Option<EndpointStatus>
pub fn get_status(&self) -> &Option<EndpointStatus>
Enum that indicates the Status of an AppInstanceUserEndpoint.
sourcepub fn status_reason(self, input: EndpointStatusReason) -> Self
pub fn status_reason(self, input: EndpointStatusReason) -> Self
The reason for the EndpointStatus.
sourcepub fn set_status_reason(self, input: Option<EndpointStatusReason>) -> Self
pub fn set_status_reason(self, input: Option<EndpointStatusReason>) -> Self
The reason for the EndpointStatus.
sourcepub fn get_status_reason(&self) -> &Option<EndpointStatusReason>
pub fn get_status_reason(&self) -> &Option<EndpointStatusReason>
The reason for the EndpointStatus.
sourcepub fn build(self) -> Result<EndpointState, BuildError>
pub fn build(self) -> Result<EndpointState, BuildError>
Consumes the builder and constructs a EndpointState.
This method will fail if any of the following fields are not set:
Trait Implementations§
source§impl Clone for EndpointStateBuilder
impl Clone for EndpointStateBuilder
source§fn clone(&self) -> EndpointStateBuilder
fn clone(&self) -> EndpointStateBuilder
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 EndpointStateBuilder
impl Debug for EndpointStateBuilder
source§impl Default for EndpointStateBuilder
impl Default for EndpointStateBuilder
source§fn default() -> EndpointStateBuilder
fn default() -> EndpointStateBuilder
Returns the “default value” for a type. Read more
source§impl PartialEq for EndpointStateBuilder
impl PartialEq for EndpointStateBuilder
source§fn eq(&self, other: &EndpointStateBuilder) -> bool
fn eq(&self, other: &EndpointStateBuilder) -> bool
This method tests for
self and other values to be equal, and is used
by ==.impl StructuralPartialEq for EndpointStateBuilder
Auto Trait Implementations§
impl Freeze for EndpointStateBuilder
impl RefUnwindSafe for EndpointStateBuilder
impl Send for EndpointStateBuilder
impl Sync for EndpointStateBuilder
impl Unpin for EndpointStateBuilder
impl UnwindSafe for EndpointStateBuilder
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
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>
Creates a shared type from an unshared type.