pub struct SeoTitle(/* private fields */);Expand description
A validated SEO title label.
Implementations§
Source§impl SeoTitle
impl SeoTitle
Sourcepub const MAX_LENGTH: usize = 70
pub const MAX_LENGTH: usize = 70
Conservative title length hint.
Sourcepub fn new(value: impl AsRef<str>) -> Result<Self, SeoValueError>
pub fn new(value: impl AsRef<str>) -> Result<Self, SeoValueError>
Creates a title from non-empty text.
§Errors
Returns SeoValueError when the title is empty or longer than Self::MAX_LENGTH.
Trait Implementations§
Source§impl Ord for SeoTitle
impl Ord for SeoTitle
Source§impl PartialOrd for SeoTitle
impl PartialOrd for SeoTitle
impl Eq for SeoTitle
impl StructuralPartialEq for SeoTitle
Auto Trait Implementations§
impl Freeze for SeoTitle
impl RefUnwindSafe for SeoTitle
impl Send for SeoTitle
impl Sync for SeoTitle
impl Unpin for SeoTitle
impl UnsafeUnpin for SeoTitle
impl UnwindSafe for SeoTitle
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