pub struct StreamMetadata {
pub size_hint: Option<u64>,
pub content_type: Option<String>,
pub origin: Option<String>,
}Expand description
Metadata associated with a stream body.
Fields§
§size_hint: Option<u64>Expected size of the stream if known.
content_type: Option<String>Content type of the stream content.
origin: Option<String>Origin of the stream (e.g. “file:///path/to/file”).
Trait Implementations§
Source§impl Clone for StreamMetadata
impl Clone for StreamMetadata
Source§fn clone(&self) -> StreamMetadata
fn clone(&self) -> StreamMetadata
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 StreamMetadata
impl Debug for StreamMetadata
Source§impl Default for StreamMetadata
impl Default for StreamMetadata
Source§fn default() -> StreamMetadata
fn default() -> StreamMetadata
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for StreamMetadata
impl RefUnwindSafe for StreamMetadata
impl Send for StreamMetadata
impl Sync for StreamMetadata
impl Unpin for StreamMetadata
impl UnsafeUnpin for StreamMetadata
impl UnwindSafe for StreamMetadata
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