pub struct EnumerationConstant {
pub name: String,
pub definition: Option<String>,
pub name_aliases: Vec<LocalizedText>,
pub definition_aliases: Vec<LocalizedText>,
}Expand description
One documented value from a PSD ConstantList.
Fields§
§name: StringConstant’s Name as declared by the ConstantList entry.
definition: Option<String>Constant’s Definition prose, absent when the publication omitted it.
name_aliases: Vec<LocalizedText>Localized alternates for name in other publication languages.
definition_aliases: Vec<LocalizedText>Localized alternates for definition in other publication languages.
Trait Implementations§
Source§impl<'__de, __Context> BorrowDecode<'__de, __Context> for EnumerationConstant
impl<'__de, __Context> BorrowDecode<'__de, __Context> for EnumerationConstant
Source§fn borrow_decode<__D: BorrowDecoder<'__de, Context = __Context>>(
decoder: &mut __D,
) -> Result<Self, DecodeError>
fn borrow_decode<__D: BorrowDecoder<'__de, Context = __Context>>( decoder: &mut __D, ) -> Result<Self, DecodeError>
Attempt to decode this type with the given BorrowDecode.
Source§impl Clone for EnumerationConstant
impl Clone for EnumerationConstant
Source§fn clone(&self) -> EnumerationConstant
fn clone(&self) -> EnumerationConstant
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 EnumerationConstant
impl Debug for EnumerationConstant
Source§impl<__Context> Decode<__Context> for EnumerationConstant
impl<__Context> Decode<__Context> for EnumerationConstant
Source§impl Encode for EnumerationConstant
impl Encode for EnumerationConstant
impl Eq for EnumerationConstant
Source§impl PartialEq for EnumerationConstant
impl PartialEq for EnumerationConstant
impl StructuralPartialEq for EnumerationConstant
Auto Trait Implementations§
impl Freeze for EnumerationConstant
impl RefUnwindSafe for EnumerationConstant
impl Send for EnumerationConstant
impl Sync for EnumerationConstant
impl Unpin for EnumerationConstant
impl UnsafeUnpin for EnumerationConstant
impl UnwindSafe for EnumerationConstant
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