pub struct TextStreamInfo {
pub id: String,
pub topic: String,
pub timestamp: DateTime<Utc>,
pub total_length: Option<u64>,
pub mime_type: String,
pub operation_type: OperationType,
pub version: i32,
pub reply_to_stream_id: Option<String>,
pub attached_stream_ids: Vec<String>,
pub generated: bool,
pub encryption_type: EncryptionType,
/* private fields */
}Expand description
Information about a text data stream.
Fields§
§id: StringUnique identifier of the stream.
topic: StringTopic name used to route the stream to the appropriate handler.
timestamp: DateTime<Utc>When the stream was created.
total_length: Option<u64>Total expected size in bytes, if known.
mime_type: StringThe MIME type of the stream data.
operation_type: OperationType§version: i32§reply_to_stream_id: Option<String>§attached_stream_ids: Vec<String>§generated: bool§encryption_type: EncryptionTypeThe encryption used
Implementations§
Source§impl TextStreamInfo
impl TextStreamInfo
Sourcepub fn attributes(&self) -> HashMap<String, String>
pub fn attributes(&self) -> HashMap<String, String>
Additional attributes as needed for your application.
Returns an owned snapshot of the attributes as of this call; attributes may still be updated when the trailer packet arrives, so re-call to observe later values.
Trait Implementations§
Source§impl Clone for TextStreamInfo
impl Clone for TextStreamInfo
Source§fn clone(&self) -> TextStreamInfo
fn clone(&self) -> TextStreamInfo
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 moreAuto Trait Implementations§
impl !RefUnwindSafe for TextStreamInfo
impl !UnwindSafe for TextStreamInfo
impl Freeze for TextStreamInfo
impl Send for TextStreamInfo
impl Sync for TextStreamInfo
impl Unpin for TextStreamInfo
impl UnsafeUnpin for TextStreamInfo
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