pub enum AffiliationType {
GroupOfLists,
SetOfEqualLists,
StandAloneList,
}Expand description
Affiliation type used in the election.
Variants§
GroupOfLists
lijstengroep
SetOfEqualLists
stel gelijkluidende lijsten
StandAloneList
op zichzelf staande lijst
Implementations§
Source§impl AffiliationType
impl AffiliationType
Sourcepub fn new(s: impl AsRef<str>) -> Result<Self, EMLError>
pub fn new(s: impl AsRef<str>) -> Result<Self, EMLError>
Create a new AffiliationType from a string, validating its format
Sourcepub fn from_eml_value(
s: impl AsRef<str>,
) -> Result<Self, UnknownAffiliationTypeError>
pub fn from_eml_value( s: impl AsRef<str>, ) -> Result<Self, UnknownAffiliationTypeError>
Create an AffiliationType from a &str, if possible.
Sourcepub fn to_eml_value(&self) -> &'static str
pub fn to_eml_value(&self) -> &'static str
Get the &str representation of this AffiliationType.
Trait Implementations§
Source§impl Clone for AffiliationType
impl Clone for AffiliationType
Source§fn clone(&self) -> AffiliationType
fn clone(&self) -> AffiliationType
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 AffiliationType
impl Debug for AffiliationType
Source§impl Hash for AffiliationType
impl Hash for AffiliationType
Source§impl PartialEq for AffiliationType
impl PartialEq for AffiliationType
Source§impl StringValueData for AffiliationType
impl StringValueData for AffiliationType
Source§type Error = UnknownAffiliationTypeError
type Error = UnknownAffiliationTypeError
The error type returned when parsing the value from a string fails.
Source§fn parse_from_str(s: &str) -> Result<Self, Self::Error>where
Self: Sized,
fn parse_from_str(s: &str) -> Result<Self, Self::Error>where
Self: Sized,
Parse the value from a string.
Source§fn to_raw_value(&self) -> String
fn to_raw_value(&self) -> String
Convert the value to its raw string representation.
impl Copy for AffiliationType
impl Eq for AffiliationType
impl StructuralPartialEq for AffiliationType
Auto Trait Implementations§
impl Freeze for AffiliationType
impl RefUnwindSafe for AffiliationType
impl Send for AffiliationType
impl Sync for AffiliationType
impl Unpin for AffiliationType
impl UnsafeUnpin for AffiliationType
impl UnwindSafe for AffiliationType
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