pub struct SerializableStreamStats {
pub id: u64,
pub source: String,
pub label: String,
pub has_custom_label: bool,
pub state: ChannelState,
pub items_yielded: u64,
pub type_name: String,
pub type_size: usize,
pub iter: u32,
}Expand description
Serializable version of stream statistics for JSON responses.
Fields§
§id: u64§source: String§label: String§has_custom_label: bool§state: ChannelState§items_yielded: u64§type_name: String§type_size: usize§iter: u32Trait Implementations§
Source§impl Clone for SerializableStreamStats
impl Clone for SerializableStreamStats
Source§fn clone(&self) -> SerializableStreamStats
fn clone(&self) -> SerializableStreamStats
Returns a duplicate 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 SerializableStreamStats
impl Debug for SerializableStreamStats
Source§impl<'de> Deserialize<'de> for SerializableStreamStats
impl<'de> Deserialize<'de> for SerializableStreamStats
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
Auto Trait Implementations§
impl Freeze for SerializableStreamStats
impl RefUnwindSafe for SerializableStreamStats
impl Send for SerializableStreamStats
impl Sync for SerializableStreamStats
impl Unpin for SerializableStreamStats
impl UnwindSafe for SerializableStreamStats
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