pub enum ModificationAction {
AddRecipient(AddRecipient),
DeleteRecipient(DeleteRecipient),
ReplaceBody(ReplaceBody),
AddHeader(AddHeader),
InsertHeader(InsertHeader),
ChangeHeader(ChangeHeader),
Quarantine(Quarantine),
}
Expand description
The container of possible milter modification actions
Variants§
AddRecipient(AddRecipient)
Add recipient
DeleteRecipient(DeleteRecipient)
Delete recipient
ReplaceBody(ReplaceBody)
Replace mail body
AddHeader(AddHeader)
Add an arbitrary header
InsertHeader(InsertHeader)
Insert the header at a specific place
ChangeHeader(ChangeHeader)
Change an existing header
Quarantine(Quarantine)
Quarantine this mail
Trait Implementations§
Source§impl Clone for ModificationAction
impl Clone for ModificationAction
Source§fn clone(&self) -> ModificationAction
fn clone(&self) -> ModificationAction
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 Debug for ModificationAction
impl Debug for ModificationAction
Source§impl From<AddHeader> for ModificationAction
impl From<AddHeader> for ModificationAction
Source§fn from(v: AddHeader) -> ModificationAction
fn from(v: AddHeader) -> ModificationAction
Converts to this type from the input type.
Source§impl From<AddRecipient> for ModificationAction
impl From<AddRecipient> for ModificationAction
Source§fn from(v: AddRecipient) -> ModificationAction
fn from(v: AddRecipient) -> ModificationAction
Converts to this type from the input type.
Source§impl From<ChangeHeader> for ModificationAction
impl From<ChangeHeader> for ModificationAction
Source§fn from(v: ChangeHeader) -> ModificationAction
fn from(v: ChangeHeader) -> ModificationAction
Converts to this type from the input type.
Source§impl From<DeleteRecipient> for ModificationAction
impl From<DeleteRecipient> for ModificationAction
Source§fn from(v: DeleteRecipient) -> ModificationAction
fn from(v: DeleteRecipient) -> ModificationAction
Converts to this type from the input type.
Source§impl From<InsertHeader> for ModificationAction
impl From<InsertHeader> for ModificationAction
Source§fn from(v: InsertHeader) -> ModificationAction
fn from(v: InsertHeader) -> ModificationAction
Converts to this type from the input type.
Source§impl From<ModificationAction> for ServerMessage
impl From<ModificationAction> for ServerMessage
Source§fn from(v: ModificationAction) -> ServerMessage
fn from(v: ModificationAction) -> ServerMessage
Converts to this type from the input type.
Source§impl From<Quarantine> for ModificationAction
impl From<Quarantine> for ModificationAction
Source§fn from(v: Quarantine) -> ModificationAction
fn from(v: Quarantine) -> ModificationAction
Converts to this type from the input type.
Source§impl From<ReplaceBody> for ModificationAction
impl From<ReplaceBody> for ModificationAction
Source§fn from(v: ReplaceBody) -> ModificationAction
fn from(v: ReplaceBody) -> ModificationAction
Converts to this type from the input type.
Source§impl TryInto<AddHeader> for ModificationAction
impl TryInto<AddHeader> for ModificationAction
Source§impl TryInto<AddRecipient> for ModificationAction
impl TryInto<AddRecipient> for ModificationAction
Source§impl TryInto<ChangeHeader> for ModificationAction
impl TryInto<ChangeHeader> for ModificationAction
Source§impl TryInto<DeleteRecipient> for ModificationAction
impl TryInto<DeleteRecipient> for ModificationAction
Source§impl TryInto<InsertHeader> for ModificationAction
impl TryInto<InsertHeader> for ModificationAction
Source§impl TryInto<ModificationAction> for ServerMessage
impl TryInto<ModificationAction> for ServerMessage
Source§impl TryInto<Quarantine> for ModificationAction
impl TryInto<Quarantine> for ModificationAction
Source§impl TryInto<ReplaceBody> for ModificationAction
impl TryInto<ReplaceBody> for ModificationAction
Source§impl Writable for ModificationAction
impl Writable for ModificationAction
Source§fn len(&self) -> usize
fn len(&self) -> usize
Byte-length that would be written if Self::write
is called
Source§fn is_empty(&self) -> bool
fn is_empty(&self) -> bool
Whether a call to Self::write
would write something
Auto Trait Implementations§
impl Freeze for ModificationAction
impl RefUnwindSafe for ModificationAction
impl Send for ModificationAction
impl Sync for ModificationAction
impl Unpin for ModificationAction
impl UnwindSafe for ModificationAction
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more