pub struct Comment<Language, Description, Content> {
pub language: Language,
pub description: Description,
pub content: Content,
}Expand description
Representation of the comment.
Fields§
§language: LanguageLanguage code (ISO 639-2) of the comment.
description: DescriptionDescription of the comment.
content: ContentContent of the comment.
Implementations§
Trait Implementations§
Source§impl<Language: Clone, Description: Clone, Content: Clone> Clone for Comment<Language, Description, Content>
impl<Language: Clone, Description: Clone, Content: Clone> Clone for Comment<Language, Description, Content>
Source§impl<Language: Debug, Description: Debug, Content: Debug> Debug for Comment<Language, Description, Content>
impl<Language: Debug, Description: Debug, Content: Debug> Debug for Comment<Language, Description, Content>
Source§impl<'de, Language, Description, Content> Deserialize<'de> for Comment<Language, Description, Content>
impl<'de, Language, Description, Content> Deserialize<'de> for Comment<Language, Description, Content>
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
Source§impl<Language, Description, Content> From<Comment<Language, Description, Content>> for Comment
impl<Language, Description, Content> From<Comment<Language, Description, Content>> for Comment
Source§impl<Language: PartialEq, Description: PartialEq, Content: PartialEq> PartialEq for Comment<Language, Description, Content>
impl<Language: PartialEq, Description: PartialEq, Content: PartialEq> PartialEq for Comment<Language, Description, Content>
impl<Language: Copy, Description: Copy, Content: Copy> Copy for Comment<Language, Description, Content>
impl<Language: Eq, Description: Eq, Content: Eq> Eq for Comment<Language, Description, Content>
impl<Language, Description, Content> StructuralPartialEq for Comment<Language, Description, Content>
Auto Trait Implementations§
impl<Language, Description, Content> Freeze for Comment<Language, Description, Content>
impl<Language, Description, Content> RefUnwindSafe for Comment<Language, Description, Content>
impl<Language, Description, Content> Send for Comment<Language, Description, Content>
impl<Language, Description, Content> Sync for Comment<Language, Description, Content>
impl<Language, Description, Content> Unpin for Comment<Language, Description, Content>
impl<Language, Description, Content> UnwindSafe for Comment<Language, Description, Content>
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<X> Pipe for X
impl<X> Pipe for X
Source§fn pipe_ref<'a, Return, Function>(&'a self, f: Function) -> Returnwhere
Function: FnOnce(&'a Self) -> Return,
fn pipe_ref<'a, Return, Function>(&'a self, f: Function) -> Returnwhere
Function: FnOnce(&'a Self) -> Return,
Source§fn pipe_mut<'a, Return, Function>(&'a mut self, f: Function) -> Returnwhere
Function: FnOnce(&'a mut Self) -> Return,
fn pipe_mut<'a, Return, Function>(&'a mut self, f: Function) -> Returnwhere
Function: FnOnce(&'a mut Self) -> Return,
Source§fn pipe_as_ref<'a, Param, Return, Function>(&'a self, f: Function) -> Return
fn pipe_as_ref<'a, Param, Return, Function>(&'a self, f: Function) -> Return
Apply
f to &self where f takes a single parameter of type Param
and Self implements trait AsRef<Param>. Read moreSource§fn pipe_as_mut<'a, Param, Return, Function>(&'a mut self, f: Function) -> Return
fn pipe_as_mut<'a, Param, Return, Function>(&'a mut self, f: Function) -> Return
Apply
f to &mut self where f takes a single parameter of type Param
and Self implements trait AsMut<Param>. Read moreSource§fn pipe_deref<'a, Param, Return, Function>(&'a self, f: Function) -> Return
fn pipe_deref<'a, Param, Return, Function>(&'a self, f: Function) -> Return
Apply
f to &self where f takes a single parameter of type Param
and Self implements trait Deref<Target = Param>. Read moreSource§fn pipe_deref_mut<'a, Param, Return, Function>(
&'a mut self,
f: Function,
) -> Returnwhere
Self: DerefMut<Target = Param>,
Param: 'a + ?Sized,
Function: FnOnce(&'a mut Param) -> Return,
fn pipe_deref_mut<'a, Param, Return, Function>(
&'a mut self,
f: Function,
) -> Returnwhere
Self: DerefMut<Target = Param>,
Param: 'a + ?Sized,
Function: FnOnce(&'a mut Param) -> Return,
Apply
f to &mut self where f takes a single parameter of type Param
and Self implements trait DerefMut<Target = Param>. Read moreSource§fn pipe_borrow<'a, Param, Return, Function>(&'a self, f: Function) -> Return
fn pipe_borrow<'a, Param, Return, Function>(&'a self, f: Function) -> Return
Apply
f to &self where f takes a single parameter of type Param
and Self implements trait Borrow<Param>. Read moreSource§fn pipe_borrow_mut<'a, Param, Return, Function>(
&'a mut self,
f: Function,
) -> Return
fn pipe_borrow_mut<'a, Param, Return, Function>( &'a mut self, f: Function, ) -> Return
Apply
f to &mut self where f takes a single parameter of type Param
and Self implements trait BorrowMut<Param>. Read more