Struct AddressLine1
pub struct AddressLine1(/* private fields */);Implementations§
§impl AddressLine1
impl AddressLine1
pub fn new(value: impl AsRef<str>) -> Result<AddressLine1, AddressLine1Error>
pub fn new(value: impl AsRef<str>) -> Result<AddressLine1, AddressLine1Error>
Creates a value from non-empty text.
§Errors
Returns AddressLine1Error::Empty when the trimmed value is empty.
pub fn as_str(&self) -> &str
Trait Implementations§
§impl AsRef<str> for AddressLine1
impl AsRef<str> for AddressLine1
§impl Clone for AddressLine1
impl Clone for AddressLine1
§fn clone(&self) -> AddressLine1
fn clone(&self) -> AddressLine1
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 more§impl Debug for AddressLine1
impl Debug for AddressLine1
§impl Display for AddressLine1
impl Display for AddressLine1
§impl From<AddressLine1> for AddressLine
impl From<AddressLine1> for AddressLine
§fn from(value: AddressLine1) -> AddressLine
fn from(value: AddressLine1) -> AddressLine
Converts to this type from the input type.
§impl FromStr for AddressLine1
impl FromStr for AddressLine1
§type Err = AddressLine1Error
type Err = AddressLine1Error
The associated error which can be returned from parsing.
§fn from_str(value: &str) -> Result<AddressLine1, <AddressLine1 as FromStr>::Err>
fn from_str(value: &str) -> Result<AddressLine1, <AddressLine1 as FromStr>::Err>
Parses a string
s to return a value of this type. Read more§impl Hash for AddressLine1
impl Hash for AddressLine1
§impl Ord for AddressLine1
impl Ord for AddressLine1
§impl PartialEq for AddressLine1
impl PartialEq for AddressLine1
§impl PartialOrd for AddressLine1
impl PartialOrd for AddressLine1
§impl TryFrom<&str> for AddressLine1
impl TryFrom<&str> for AddressLine1
§type Error = AddressLine1Error
type Error = AddressLine1Error
The type returned in the event of a conversion error.
§fn try_from(
value: &str,
) -> Result<AddressLine1, <AddressLine1 as TryFrom<&str>>::Error>
fn try_from( value: &str, ) -> Result<AddressLine1, <AddressLine1 as TryFrom<&str>>::Error>
Performs the conversion.
impl Eq for AddressLine1
impl StructuralPartialEq for AddressLine1
Auto Trait Implementations§
impl Freeze for AddressLine1
impl RefUnwindSafe for AddressLine1
impl Send for AddressLine1
impl Sync for AddressLine1
impl Unpin for AddressLine1
impl UnsafeUnpin for AddressLine1
impl UnwindSafe for AddressLine1
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