Struct RenderedMarker
pub struct RenderedMarker {
pub target: String,
pub kind: MarkerKind,
}Expand description
The marker a receiving channel rendered into the message text for an attachment’s exact bytes: the target it referenced and the disposition it chose.
The two are kept together so they cannot drift apart. A target without a disposition cannot say whether the channel rendered an image or a document, which is exactly the distinction a downstream stage needs to avoid re-classifying a rendered document as an image.
Fields§
§target: StringThe exact target the channel rendered (a saved path or a URL).
kind: MarkerKindThe disposition the channel chose when it rendered the marker.
Trait Implementations§
Source§impl Clone for RenderedMarker
impl Clone for RenderedMarker
Source§fn clone(&self) -> RenderedMarker
fn clone(&self) -> RenderedMarker
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · §fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for RenderedMarker
impl Debug for RenderedMarker
impl Eq for RenderedMarker
Source§impl PartialEq for RenderedMarker
impl PartialEq for RenderedMarker
impl StructuralPartialEq for RenderedMarker
Auto Trait Implementations§
impl Freeze for RenderedMarker
impl RefUnwindSafe for RenderedMarker
impl Send for RenderedMarker
impl Sync for RenderedMarker
impl Unpin for RenderedMarker
impl UnsafeUnpin for RenderedMarker
impl UnwindSafe for RenderedMarker
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