pub struct ContentEntry {
pub key: String,
pub values: Vec<String>,
pub locale: Option<Locale>,
}Expand description
A key-values entry.
Fields§
§key: StringThe key of the entry.
values: Vec<String>The values of the entry.
locale: Option<Locale>The potential locale of the entry.
Trait Implementations§
Source§impl Clone for ContentEntry
impl Clone for ContentEntry
Source§impl Debug for ContentEntry
impl Debug for ContentEntry
Source§impl Display for ContentEntry
impl Display for ContentEntry
Source§impl EntrySet<ContentEntry> for Group
impl EntrySet<ContentEntry> for Group
Source§fn without_comments(&self) -> Vec<&ContentEntry>
fn without_comments(&self) -> Vec<&ContentEntry>
Returns a vector of the entries that are not comments or blanks.
Source§fn only_comments(&self) -> Vec<&CommentEntry>
fn only_comments(&self) -> Vec<&CommentEntry>
Returs a vector of the entries that are comments or blanks (no key-values entries).
Source§fn find(&self, key: &str) -> Option<&ContentEntry>
fn find(&self, key: &str) -> Option<&ContentEntry>
Find the first entry for this key, or
None if no entry with this key was found.Source§fn find_mut(&mut self, key: &str) -> Option<&mut ContentEntry>
fn find_mut(&mut self, key: &str) -> Option<&mut ContentEntry>
Find the first entry for this key and returns it as a mutable reference, or
None if no entry with this key was found.impl Eq for ContentEntry
Source§impl From<ContentEntry> for Entry
impl From<ContentEntry> for Entry
Source§fn from(value: ContentEntry) -> Self
fn from(value: ContentEntry) -> Self
Converts to this type from the input type.
Source§impl PartialEq for ContentEntry
impl PartialEq for ContentEntry
impl StructuralPartialEq for ContentEntry
Auto Trait Implementations§
impl Freeze for ContentEntry
impl RefUnwindSafe for ContentEntry
impl Send for ContentEntry
impl Sync for ContentEntry
impl Unpin for ContentEntry
impl UnsafeUnpin for ContentEntry
impl UnwindSafe for ContentEntry
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