Struct iota_client::api_types::response::StatusResponse
source · pub struct StatusResponse {
pub is_healthy: bool,
pub latest_milestone: LatestMilestoneResponse,
pub confirmed_milestone: ConfirmedMilestoneResponse,
pub pruning_index: u32,
}
Expand description
Returned in InfoResponse
.
Status information about the node.
Fields
is_healthy: bool
latest_milestone: LatestMilestoneResponse
confirmed_milestone: ConfirmedMilestoneResponse
pruning_index: u32
Trait Implementations
sourceimpl Clone for StatusResponse
impl Clone for StatusResponse
sourcefn clone(&self) -> StatusResponse
fn clone(&self) -> StatusResponse
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for StatusResponse
impl Debug for StatusResponse
sourceimpl<'de> Deserialize<'de> for StatusResponse
impl<'de> Deserialize<'de> for StatusResponse
sourcefn deserialize<__D>(
__deserializer: __D
) -> Result<StatusResponse, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D
) -> Result<StatusResponse, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
sourceimpl PartialEq<StatusResponse> for StatusResponse
impl PartialEq<StatusResponse> for StatusResponse
sourcefn eq(&self, other: &StatusResponse) -> bool
fn eq(&self, other: &StatusResponse) -> bool
sourceimpl Serialize for StatusResponse
impl Serialize for StatusResponse
sourcefn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl Eq for StatusResponse
impl StructuralEq for StatusResponse
impl StructuralPartialEq for StatusResponse
Auto Trait Implementations
impl RefUnwindSafe for StatusResponse
impl Send for StatusResponse
impl Sync for StatusResponse
impl Unpin for StatusResponse
impl UnwindSafe for StatusResponse
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn 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 Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
sourceimpl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
sourcefn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.