pub enum SnippetDirective {
Snippet,
NoSnippet,
MaxSnippet(u16),
}Expand description
Snippet directive.
Variants§
Snippet
Allow snippets.
NoSnippet
Disallow snippets.
MaxSnippet(u16)
Limit snippets to a maximum character count.
Implementations§
Source§impl SnippetDirective
impl SnippetDirective
Sourcepub fn to_content(self) -> String
pub fn to_content(self) -> String
Formats the directive for a robots meta content value.
Trait Implementations§
Source§impl Clone for SnippetDirective
impl Clone for SnippetDirective
Source§fn clone(&self) -> SnippetDirective
fn clone(&self) -> SnippetDirective
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 SnippetDirective
impl Debug for SnippetDirective
Source§impl Hash for SnippetDirective
impl Hash for SnippetDirective
Source§impl Ord for SnippetDirective
impl Ord for SnippetDirective
Source§fn cmp(&self, other: &SnippetDirective) -> Ordering
fn cmp(&self, other: &SnippetDirective) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for SnippetDirective
impl PartialEq for SnippetDirective
Source§fn eq(&self, other: &SnippetDirective) -> bool
fn eq(&self, other: &SnippetDirective) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for SnippetDirective
impl PartialOrd for SnippetDirective
impl Copy for SnippetDirective
impl Eq for SnippetDirective
impl StructuralPartialEq for SnippetDirective
Auto Trait Implementations§
impl Freeze for SnippetDirective
impl RefUnwindSafe for SnippetDirective
impl Send for SnippetDirective
impl Sync for SnippetDirective
impl Unpin for SnippetDirective
impl UnsafeUnpin for SnippetDirective
impl UnwindSafe for SnippetDirective
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