Struct CarrierParts
pub struct CarrierParts {
pub text: String,
pub attachments: Vec<RenderedMarker>,
pub declared: bool,
pub kind: CarrierKind,
}Expand description
A carrier opened at its fixed position: the verbatim body, the declared attachments, whether the position carried a declaration at all, and which shape the carrier takes.
Fields§
§text: StringThe carrier body. For native carriers this is the envelope’s
content string; for prompt carriers it is everything after the N
marker lines. Never interpreted for markers by anything reading it
through this type.
attachments: Vec<RenderedMarker>Attachments declared at the fixed position, in declaration order.
declared: boolWhether the fixed position carried a declaration (a present
attachments key holding an array / count line present). false
marks a legacy carrier: zero attachments, and the body is untrusted
text that must not be promoted.
kind: CarrierKindWhich carrier shape the message uses; see CarrierKind.
Trait Implementations§
Source§impl Clone for CarrierParts
impl Clone for CarrierParts
Source§fn clone(&self) -> CarrierParts
fn clone(&self) -> CarrierParts
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 CarrierParts
impl Debug for CarrierParts
impl Eq for CarrierParts
Source§impl PartialEq for CarrierParts
impl PartialEq for CarrierParts
impl StructuralPartialEq for CarrierParts
Auto Trait Implementations§
impl Freeze for CarrierParts
impl RefUnwindSafe for CarrierParts
impl Send for CarrierParts
impl Sync for CarrierParts
impl Unpin for CarrierParts
impl UnsafeUnpin for CarrierParts
impl UnwindSafe for CarrierParts
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