pub struct Artifact {
pub bytes: Bytes,
pub filename: String,
pub content_type: String,
}Expand description
A rendered document.
filename and content_type come from Content-Disposition and
Content-Type. Both are always present on an mdcast-server response; the
fallbacks exist for an intermediary that strips them, and are derived (the
target’s own extension, HTTP’s default media type) rather than invented.
Fields§
§bytes: Bytes§filename: String§content_type: StringTrait Implementations§
impl Eq for Artifact
impl StructuralPartialEq for Artifact
Auto Trait Implementations§
impl !Freeze for Artifact
impl RefUnwindSafe for Artifact
impl Send for Artifact
impl Sync for Artifact
impl Unpin for Artifact
impl UnsafeUnpin for Artifact
impl UnwindSafe for Artifact
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