pub struct StreamSession {
pub id: String,
pub extension_id: String,
pub config: Value,
pub started_at: i64,
pub last_activity: i64,
pub bytes_in: u64,
pub bytes_out: u64,
pub chunks_in: u64,
pub chunks_out: u64,
pub client_info: Option<ClientInfo>,
pub metadata: Option<Value>,
}Expand description
Stream session.
Fields§
§id: String§extension_id: String§config: Value§started_at: i64§last_activity: i64§bytes_in: u64§bytes_out: u64§chunks_in: u64§chunks_out: u64§client_info: Option<ClientInfo>§metadata: Option<Value>Implementations§
Trait Implementations§
Source§impl Clone for StreamSession
impl Clone for StreamSession
Source§fn clone(&self) -> StreamSession
fn clone(&self) -> StreamSession
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 StreamSession
impl Debug for StreamSession
Source§impl<'de> Deserialize<'de> for StreamSession
impl<'de> Deserialize<'de> for StreamSession
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 StreamSession
impl RefUnwindSafe for StreamSession
impl Send for StreamSession
impl Sync for StreamSession
impl Unpin for StreamSession
impl UnsafeUnpin for StreamSession
impl UnwindSafe for StreamSession
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