pub struct OptionalField {
pub name: FieldName,
pub value: Unstructured,
}Fields§
§name: FieldName§value: UnstructuredTrait Implementations§
Source§impl Clone for OptionalField
impl Clone for OptionalField
Source§fn clone(&self) -> OptionalField
fn clone(&self) -> OptionalField
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 OptionalField
impl Debug for OptionalField
Source§impl Display for OptionalField
impl Display for OptionalField
Source§impl Parsable for OptionalField
impl Parsable for OptionalField
Source§impl PartialEq for OptionalField
impl PartialEq for OptionalField
Source§impl Streamable for OptionalField
impl Streamable for OptionalField
Source§impl<'a, 'b> TryFrom<(&'a [u8], &'b [u8])> for OptionalField
impl<'a, 'b> TryFrom<(&'a [u8], &'b [u8])> for OptionalField
Source§type Error = ParseError
type Error = ParseError
The type returned in the event of a conversion error.
Source§fn try_from(input: (&'a [u8], &'b [u8])) -> Result<OptionalField, ParseError>
fn try_from(input: (&'a [u8], &'b [u8])) -> Result<OptionalField, ParseError>
Performs the conversion.
Source§impl<'a, 'b> TryFrom<(&'a str, &'b str)> for OptionalField
impl<'a, 'b> TryFrom<(&'a str, &'b str)> for OptionalField
Source§type Error = ParseError
type Error = ParseError
The type returned in the event of a conversion error.
Source§fn try_from(input: (&'a str, &'b str)) -> Result<OptionalField, ParseError>
fn try_from(input: (&'a str, &'b str)) -> Result<OptionalField, ParseError>
Performs the conversion.
Source§impl<'a> TryFrom<(FieldName, Unstructured)> for OptionalField
impl<'a> TryFrom<(FieldName, Unstructured)> for OptionalField
Source§type Error = ParseError
type Error = ParseError
The type returned in the event of a conversion error.
Source§fn try_from(
input: (FieldName, Unstructured),
) -> Result<OptionalField, ParseError>
fn try_from( input: (FieldName, Unstructured), ) -> Result<OptionalField, ParseError>
Performs the conversion.
impl StructuralPartialEq for OptionalField
Auto Trait Implementations§
impl Freeze for OptionalField
impl RefUnwindSafe for OptionalField
impl Send for OptionalField
impl Sync for OptionalField
impl Unpin for OptionalField
impl UnwindSafe for OptionalField
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