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§impl Debug for StreamMetadata
impl Debug for StreamMetadata
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