pub struct SessionTitle(/* private fields */);Expand description
Short description of the task a session works on, 1 to 80 characters.
Implementations§
Source§impl SessionTitle
impl SessionTitle
Sourcepub fn parse(text: &str) -> Result<Self, TitleError>
pub fn parse(text: &str) -> Result<Self, TitleError>
Trims the text and checks its length.
§Errors
Fails when the trimmed text is empty or longer than MAX_TITLE_CHARS.
pub fn as_str(&self) -> &str
Trait Implementations§
Source§impl Clone for SessionTitle
impl Clone for SessionTitle
Source§impl Debug for SessionTitle
impl Debug for SessionTitle
Source§impl<'de> Deserialize<'de> for SessionTitle
impl<'de> Deserialize<'de> for SessionTitle
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for SessionTitle
Source§impl From<SessionTitle> for String
impl From<SessionTitle> for String
Source§fn from(title: SessionTitle) -> Self
fn from(title: SessionTitle) -> Self
Converts to this type from the input type.
Source§impl PartialEq for SessionTitle
impl PartialEq for SessionTitle
Source§impl Serialize for SessionTitle
impl Serialize for SessionTitle
impl StructuralPartialEq for SessionTitle
Auto Trait Implementations§
impl Freeze for SessionTitle
impl RefUnwindSafe for SessionTitle
impl Send for SessionTitle
impl Sync for SessionTitle
impl Unpin for SessionTitle
impl UnsafeUnpin for SessionTitle
impl UnwindSafe for SessionTitle
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