pub struct CandidateIdentifier {
pub id: StringValue<CandidateId>,
pub display_order: Option<StringValue<NonZeroU64>>,
pub short_code: Option<StringValue<NameShortCode>>,
pub expected_confirmation_reference: Option<Box<str>>,
}Expand description
Candidate identifier, but not for 510 document types.
Fields§
§id: StringValue<CandidateId>The candidate id.
display_order: Option<StringValue<NonZeroU64>>The display order of the candidate.
short_code: Option<StringValue<NameShortCode>>The short code of the candidate.
Note: This can be specified either as an attribute or as a child element, but the attribute takes precedence if both are present. Additionally we only ever output it as an attribute for simplicity.
expected_confirmation_reference: Option<Box<str>>The expected confirmation reference of the candidate.
Implementations§
Source§impl CandidateIdentifier
impl CandidateIdentifier
Sourcepub fn new(id: CandidateId) -> Self
pub fn new(id: CandidateId) -> Self
Create a new CandidateIdentifier.
Sourcepub fn with_display_order(self, display_order: NonZeroU64) -> Self
pub fn with_display_order(self, display_order: NonZeroU64) -> Self
Set the display order of the candidate.
Sourcepub fn with_short_code(self, short_code: NameShortCode) -> Self
pub fn with_short_code(self, short_code: NameShortCode) -> Self
Set the short code of the candidate.
Sourcepub fn with_expected_confirmation_reference(
self,
reference: impl Into<Box<str>>,
) -> Self
pub fn with_expected_confirmation_reference( self, reference: impl Into<Box<str>>, ) -> Self
Set the expected confirmation reference of the candidate.
Trait Implementations§
Source§impl Clone for CandidateIdentifier
impl Clone for CandidateIdentifier
Source§fn clone(&self) -> CandidateIdentifier
fn clone(&self) -> CandidateIdentifier
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 CandidateIdentifier
impl Debug for CandidateIdentifier
Source§impl From<CandidateId> for CandidateIdentifier
impl From<CandidateId> for CandidateIdentifier
Source§fn from(value: CandidateId) -> Self
fn from(value: CandidateId) -> Self
Converts to this type from the input type.
Source§impl From<CandidateIdentifier> for CandidateSelection
impl From<CandidateIdentifier> for CandidateSelection
Source§fn from(identifier: CandidateIdentifier) -> Self
fn from(identifier: CandidateIdentifier) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for CandidateIdentifier
impl RefUnwindSafe for CandidateIdentifier
impl Send for CandidateIdentifier
impl Sync for CandidateIdentifier
impl Unpin for CandidateIdentifier
impl UnsafeUnpin for CandidateIdentifier
impl UnwindSafe for CandidateIdentifier
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<T> EMLRead for Twhere
T: EMLReadElement + 'static,
impl<T> EMLRead for Twhere
T: EMLReadElement + 'static,
Source§fn parse_eml(input: &str, parsing_mode: EMLParsingMode) -> EMLReadResult<T>where
T: Sized + 'static,
fn parse_eml(input: &str, parsing_mode: EMLParsingMode) -> EMLReadResult<T>where
T: Sized + 'static,
Parse an EML document from the given string slice. Read more