pub struct Unsubscribe {
pub mode: UnsubscribeMode,
pub display_name: Option<String>,
}Expand description
One-click unsubscribe configuration for a send.
Fields§
§mode: UnsubscribeMode§display_name: Option<String>Implementations§
Source§impl Unsubscribe
impl Unsubscribe
Sourcepub fn generate() -> Self
pub fn generate() -> Self
Mint a per-recipient signed token and inject RFC 8058 headers. Requires a
topic on the send.
Sourcepub fn none() -> Self
pub fn none() -> Self
No header injection — for transactional sends that must not carry unsubscribe semantics.
pub fn display_name(self, name: impl Into<String>) -> Self
Trait Implementations§
Source§impl Clone for Unsubscribe
impl Clone for Unsubscribe
Source§fn clone(&self) -> Unsubscribe
fn clone(&self) -> Unsubscribe
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 Unsubscribe
impl Debug for Unsubscribe
Auto Trait Implementations§
impl Freeze for Unsubscribe
impl RefUnwindSafe for Unsubscribe
impl Send for Unsubscribe
impl Sync for Unsubscribe
impl Unpin for Unsubscribe
impl UnsafeUnpin for Unsubscribe
impl UnwindSafe for Unsubscribe
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