#[non_exhaustive]pub struct ConnectionHealthBuilder { /* private fields */ }
Expand description
A builder for ConnectionHealth
.
Implementations§
source§impl ConnectionHealthBuilder
impl ConnectionHealthBuilder
sourcepub fn type(self, input: ConnectionType) -> Self
pub fn type(self, input: ConnectionType) -> Self
The connection type.
sourcepub fn set_type(self, input: Option<ConnectionType>) -> Self
pub fn set_type(self, input: Option<ConnectionType>) -> Self
The connection type.
sourcepub fn get_type(&self) -> &Option<ConnectionType>
pub fn get_type(&self) -> &Option<ConnectionType>
The connection type.
sourcepub fn status(self, input: ConnectionStatus) -> Self
pub fn status(self, input: ConnectionStatus) -> Self
The connection status.
sourcepub fn set_status(self, input: Option<ConnectionStatus>) -> Self
pub fn set_status(self, input: Option<ConnectionStatus>) -> Self
The connection status.
sourcepub fn get_status(&self) -> &Option<ConnectionStatus>
pub fn get_status(&self) -> &Option<ConnectionStatus>
The connection status.
sourcepub fn set_timestamp(self, input: Option<DateTime>) -> Self
pub fn set_timestamp(self, input: Option<DateTime>) -> Self
The time the status was last updated.
sourcepub fn get_timestamp(&self) -> &Option<DateTime>
pub fn get_timestamp(&self) -> &Option<DateTime>
The time the status was last updated.
sourcepub fn build(self) -> ConnectionHealth
pub fn build(self) -> ConnectionHealth
Consumes the builder and constructs a ConnectionHealth
.
Trait Implementations§
source§impl Clone for ConnectionHealthBuilder
impl Clone for ConnectionHealthBuilder
source§fn clone(&self) -> ConnectionHealthBuilder
fn clone(&self) -> ConnectionHealthBuilder
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 ConnectionHealthBuilder
impl Debug for ConnectionHealthBuilder
source§impl Default for ConnectionHealthBuilder
impl Default for ConnectionHealthBuilder
source§fn default() -> ConnectionHealthBuilder
fn default() -> ConnectionHealthBuilder
Returns the “default value” for a type. Read more
source§impl PartialEq for ConnectionHealthBuilder
impl PartialEq for ConnectionHealthBuilder
source§fn eq(&self, other: &ConnectionHealthBuilder) -> bool
fn eq(&self, other: &ConnectionHealthBuilder) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for ConnectionHealthBuilder
Auto Trait Implementations§
impl Freeze for ConnectionHealthBuilder
impl RefUnwindSafe for ConnectionHealthBuilder
impl Send for ConnectionHealthBuilder
impl Sync for ConnectionHealthBuilder
impl Unpin for ConnectionHealthBuilder
impl UnwindSafe for ConnectionHealthBuilder
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.