pub struct OCATranslation {
pub name: Option<String>,
pub description: Option<String>,
pub extra: BTreeMap<String, String>,
}
Fields§
§name: Option<String>
§description: Option<String>
§extra: BTreeMap<String, String>
Implementations§
Source§impl OCATranslation
impl OCATranslation
pub fn new() -> OCATranslation
pub fn add_name(&mut self, name: String) -> &mut OCATranslation
pub fn add_description(&mut self, description: String) -> &mut OCATranslation
pub fn add_extra(&mut self, name: String, value: String) -> &mut OCATranslation
Trait Implementations§
Source§impl Clone for OCATranslation
impl Clone for OCATranslation
Source§fn clone(&self) -> OCATranslation
fn clone(&self) -> OCATranslation
Returns a duplicate of the value. Read more
1.0.0 · 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 OCATranslation
impl Debug for OCATranslation
Source§impl Default for OCATranslation
impl Default for OCATranslation
Source§impl<'de> Deserialize<'de> for OCATranslation
impl<'de> Deserialize<'de> for OCATranslation
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 Hash for OCATranslation
impl Hash for OCATranslation
Source§impl PartialEq for OCATranslation
impl PartialEq for OCATranslation
Source§impl Serialize for OCATranslation
impl Serialize for OCATranslation
impl Eq for OCATranslation
impl StructuralPartialEq for OCATranslation
Auto Trait Implementations§
impl Freeze for OCATranslation
impl RefUnwindSafe for OCATranslation
impl Send for OCATranslation
impl Sync for OCATranslation
impl Unpin for OCATranslation
impl UnwindSafe for OCATranslation
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.