pub struct SearchSnippetMetadata { /* private fields */ }Expand description
Search snippet metadata composed from focused SEO primitives.
Implementations§
Source§impl SearchSnippetMetadata
impl SearchSnippetMetadata
Sourcepub const fn new(title: SeoTitle, description: MetaDescription) -> Self
pub const fn new(title: SeoTitle, description: MetaDescription) -> Self
Creates snippet metadata with default informational indexable intent.
Sourcepub const fn with_intent(self, intent: PageIntent) -> Self
pub const fn with_intent(self, intent: PageIntent) -> Self
Sets the page intent.
Sourcepub const fn with_indexing_hint(self, hint: IndexingHint) -> Self
pub const fn with_indexing_hint(self, hint: IndexingHint) -> Self
Sets the indexing hint.
Sourcepub fn with_slug_hint(self, hint: SlugHint) -> Self
pub fn with_slug_hint(self, hint: SlugHint) -> Self
Sets the slug hint.
Sourcepub fn with_relation_hint(self, hint: LinkRelationHint) -> Self
pub fn with_relation_hint(self, hint: LinkRelationHint) -> Self
Adds a link relation hint.
Sourcepub const fn description(&self) -> &MetaDescription
pub const fn description(&self) -> &MetaDescription
Returns the description.
Sourcepub const fn intent(&self) -> PageIntent
pub const fn intent(&self) -> PageIntent
Returns the page intent.
Sourcepub const fn indexing_hint(&self) -> IndexingHint
pub const fn indexing_hint(&self) -> IndexingHint
Returns the indexing hint.
Sourcepub fn relation_hints(&self) -> &[LinkRelationHint]
pub fn relation_hints(&self) -> &[LinkRelationHint]
Returns link relation hints.
Trait Implementations§
Source§impl Clone for SearchSnippetMetadata
impl Clone for SearchSnippetMetadata
Source§fn clone(&self) -> SearchSnippetMetadata
fn clone(&self) -> SearchSnippetMetadata
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 SearchSnippetMetadata
impl Debug for SearchSnippetMetadata
Source§impl PartialEq for SearchSnippetMetadata
impl PartialEq for SearchSnippetMetadata
Source§fn eq(&self, other: &SearchSnippetMetadata) -> bool
fn eq(&self, other: &SearchSnippetMetadata) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for SearchSnippetMetadata
impl StructuralPartialEq for SearchSnippetMetadata
Auto Trait Implementations§
impl Freeze for SearchSnippetMetadata
impl RefUnwindSafe for SearchSnippetMetadata
impl Send for SearchSnippetMetadata
impl Sync for SearchSnippetMetadata
impl Unpin for SearchSnippetMetadata
impl UnsafeUnpin for SearchSnippetMetadata
impl UnwindSafe for SearchSnippetMetadata
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