pub enum FieldKind {
ContentBlock,
EmailHtmlBody,
EmailPlainBody,
EmailSubject,
EmailPreheader,
}Expand description
Which Liquid context the body belongs to. Determines:
- what kind of URL anchor lid detection should look for (HTML vs raw)
- whether lid detection without a URL anchor should produce a
sequential
link_Nkey (deferred for subject/preheader v0.14)
Variants§
Implementations§
Source§impl FieldKind
impl FieldKind
pub fn supports_html_anchor(self) -> bool
pub fn supports_plaintext_anchor(self) -> bool
Trait Implementations§
impl Copy for FieldKind
impl Eq for FieldKind
impl StructuralPartialEq for FieldKind
Auto Trait Implementations§
impl Freeze for FieldKind
impl RefUnwindSafe for FieldKind
impl Send for FieldKind
impl Sync for FieldKind
impl Unpin for FieldKind
impl UnsafeUnpin for FieldKind
impl UnwindSafe for FieldKind
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.