pub struct SeoLinkPolicy { /* private fields */ }Expand description
Directional internal-link policy for SEO recommendation graphs.
Implementations§
Source§impl SeoLinkPolicy
impl SeoLinkPolicy
Sourcepub fn new(pages: impl IntoIterator<Item = SeoPage>) -> Result<Self>
pub fn new(pages: impl IntoIterator<Item = SeoPage>) -> Result<Self>
Builds an SEO policy and rejects duplicate page profiles.
§Errors
Returns an error when more than one profile targets the same node.
pub const fn with_cross_language(self, allow: bool) -> Self
pub fn page(&self, node_id: &NodeId) -> Option<&SeoPage>
pub fn with_existing_links_from_graph<F>( self, graph: &Graph, is_link: F, ) -> Self
Trait Implementations§
Source§impl Clone for SeoLinkPolicy
impl Clone for SeoLinkPolicy
Source§fn clone(&self) -> SeoLinkPolicy
fn clone(&self) -> SeoLinkPolicy
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 SeoLinkPolicy
impl Debug for SeoLinkPolicy
impl Eq for SeoLinkPolicy
Source§impl LinkPolicy for SeoLinkPolicy
impl LinkPolicy for SeoLinkPolicy
Source§impl PartialEq for SeoLinkPolicy
impl PartialEq for SeoLinkPolicy
impl StructuralPartialEq for SeoLinkPolicy
Auto Trait Implementations§
impl Freeze for SeoLinkPolicy
impl RefUnwindSafe for SeoLinkPolicy
impl Send for SeoLinkPolicy
impl Sync for SeoLinkPolicy
impl Unpin for SeoLinkPolicy
impl UnsafeUnpin for SeoLinkPolicy
impl UnwindSafe for SeoLinkPolicy
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