Struct krill::commons::api::ChildStatus
source · pub struct ChildStatus { /* private fields */ }
Implementations§
source§impl ChildStatus
impl ChildStatus
pub fn set_success(&mut self, user_agent: Option<String>)
pub fn set_failure( &mut self, user_agent: Option<String>, error_response: ErrorResponse )
pub fn set_suspended(&mut self)
pub fn last_exchange(&self) -> Option<&ChildExchange>
pub fn last_success(&self) -> Option<Timestamp>
pub fn suspended(&self) -> Option<Timestamp>
pub fn child_state(&self) -> ChildState
Trait Implementations§
source§impl Clone for ChildStatus
impl Clone for ChildStatus
source§fn clone(&self) -> ChildStatus
fn clone(&self) -> ChildStatus
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 ChildStatus
impl Debug for ChildStatus
source§impl Default for ChildStatus
impl Default for ChildStatus
source§fn default() -> ChildStatus
fn default() -> ChildStatus
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for ChildStatus
impl<'de> Deserialize<'de> for ChildStatus
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl From<ChildStatus> for Option<ChildExchange>
impl From<ChildStatus> for Option<ChildExchange>
source§fn from(status: ChildStatus) -> Self
fn from(status: ChildStatus) -> Self
Converts to this type from the input type.
source§impl PartialEq for ChildStatus
impl PartialEq for ChildStatus
source§fn eq(&self, other: &ChildStatus) -> bool
fn eq(&self, other: &ChildStatus) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for ChildStatus
impl Serialize for ChildStatus
impl Eq for ChildStatus
impl StructuralEq for ChildStatus
impl StructuralPartialEq for ChildStatus
Auto Trait Implementations§
impl RefUnwindSafe for ChildStatus
impl Send for ChildStatus
impl Sync for ChildStatus
impl Unpin for ChildStatus
impl UnwindSafe for ChildStatus
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
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.