pub enum AttachmentFormattingPlacement {
Inline,
InlineWithHeader {
header: &'static str,
},
Appendix {
appendix_name: &'static str,
},
Opaque,
Hidden,
}Expand description
Enum for attachments to specify the placement they prefer to be formatted when they are formatted as part of a report.
Whether this is respected or not, and what constitutes an “appendix” is up to the code that does the formatting for reports.
Variants§
Inline
The attachment prefers to be rendered inline
InlineWithHeader
The attachment prefers to be rendered inline under a sub-header. This can be useful for attachments rendering as multiple lines
Appendix
The attachment prefers to be rendered as an appendix
Fields
Opaque
The attachment prefers not to be rendered, but would like to show up in an “$N additional opaque attachments” message
Hidden
The attachment prefers not to be rendered at all
Trait Implementations§
Source§impl Clone for AttachmentFormattingPlacement
impl Clone for AttachmentFormattingPlacement
Source§fn clone(&self) -> AttachmentFormattingPlacement
fn clone(&self) -> AttachmentFormattingPlacement
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 Default for AttachmentFormattingPlacement
impl Default for AttachmentFormattingPlacement
Source§fn default() -> AttachmentFormattingPlacement
fn default() -> AttachmentFormattingPlacement
Returns the “default value” for a type. Read more
Source§impl Hash for AttachmentFormattingPlacement
impl Hash for AttachmentFormattingPlacement
Source§impl PartialEq for AttachmentFormattingPlacement
impl PartialEq for AttachmentFormattingPlacement
Source§fn eq(&self, other: &AttachmentFormattingPlacement) -> bool
fn eq(&self, other: &AttachmentFormattingPlacement) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for AttachmentFormattingPlacement
impl Eq for AttachmentFormattingPlacement
impl StructuralPartialEq for AttachmentFormattingPlacement
Auto Trait Implementations§
impl Freeze for AttachmentFormattingPlacement
impl RefUnwindSafe for AttachmentFormattingPlacement
impl Send for AttachmentFormattingPlacement
impl Sync for AttachmentFormattingPlacement
impl Unpin for AttachmentFormattingPlacement
impl UnwindSafe for AttachmentFormattingPlacement
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