pub struct AddressList { /* private fields */ }Expand description
A parsed list of address items.
This is used instead of Vec<Address> for FromStr, because Rust’s orphan
rules do not allow implementing foreign traits for foreign types.
Implementations§
Trait Implementations§
Source§impl<'a> Arbitrary<'a> for AddressList
Available on crate feature arbitrary only.
impl<'a> Arbitrary<'a> for AddressList
Available on crate feature
arbitrary only.Source§fn arbitrary(u: &mut Unstructured<'a>) -> Result<Self>
fn arbitrary(u: &mut Unstructured<'a>) -> Result<Self>
Generate an arbitrary value of
Self from the given unstructured data. Read moreSource§fn arbitrary_take_rest(u: Unstructured<'a>) -> Result<Self, Error>
fn arbitrary_take_rest(u: Unstructured<'a>) -> Result<Self, Error>
Generate an arbitrary value of
Self from the entirety of the given
unstructured data. Read moreSource§fn size_hint(depth: usize) -> (usize, Option<usize>)
fn size_hint(depth: usize) -> (usize, Option<usize>)
Get a size hint for how many bytes out of an
Unstructured this type
needs to construct itself. Read moreSource§fn try_size_hint(
depth: usize,
) -> Result<(usize, Option<usize>), MaxRecursionReached>
fn try_size_hint( depth: usize, ) -> Result<(usize, Option<usize>), MaxRecursionReached>
Get a size hint for how many bytes out of an
Unstructured this type
needs to construct itself. Read moreSource§impl AsRef<[Address]> for AddressList
impl AsRef<[Address]> for AddressList
Source§impl Clone for AddressList
impl Clone for AddressList
Source§fn clone(&self) -> AddressList
fn clone(&self) -> AddressList
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 AddressList
impl Debug for AddressList
Source§impl Default for AddressList
impl Default for AddressList
Source§fn default() -> AddressList
fn default() -> AddressList
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for AddressList
Available on crate feature serde only.
impl<'de> Deserialize<'de> for AddressList
Available on crate feature
serde only.Source§fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Display for AddressList
impl Display for AddressList
Source§impl Extend<Address> for AddressList
impl Extend<Address> for AddressList
Source§fn extend<T: IntoIterator<Item = Address>>(&mut self, iter: T)
fn extend<T: IntoIterator<Item = Address>>(&mut self, iter: T)
Extends a collection with the contents of an iterator. Read more
Source§fn extend_one(&mut self, item: A)
fn extend_one(&mut self, item: A)
🔬This is a nightly-only experimental API. (
extend_one)Extends a collection with exactly one element.
Source§fn extend_reserve(&mut self, additional: usize)
fn extend_reserve(&mut self, additional: usize)
🔬This is a nightly-only experimental API. (
extend_one)Reserves capacity in a collection for the given number of additional elements. Read more
Source§impl From<AddressList> for Vec<Address>
impl From<AddressList> for Vec<Address>
Source§fn from(value: AddressList) -> Self
fn from(value: AddressList) -> Self
Converts to this type from the input type.
Source§impl FromIterator<Address> for AddressList
impl FromIterator<Address> for AddressList
Source§impl FromStr for AddressList
impl FromStr for AddressList
Source§impl Hash for AddressList
impl Hash for AddressList
Source§impl<'a> IntoIterator for &'a AddressList
impl<'a> IntoIterator for &'a AddressList
Source§impl<'a> IntoIterator for &'a mut AddressList
impl<'a> IntoIterator for &'a mut AddressList
Source§impl IntoIterator for AddressList
impl IntoIterator for AddressList
Source§impl JsonSchema for AddressList
impl JsonSchema for AddressList
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreSource§impl PartialEq for AddressList
impl PartialEq for AddressList
Source§impl Serialize for AddressList
Available on crate feature serde only.
impl Serialize for AddressList
Available on crate feature
serde only.Source§impl<'a> TryFrom<&'a [&'a str]> for AddressList
impl<'a> TryFrom<&'a [&'a str]> for AddressList
Source§impl TryFrom<&str> for AddressList
impl TryFrom<&str> for AddressList
impl Eq for AddressList
impl StructuralPartialEq for AddressList
Auto Trait Implementations§
impl Freeze for AddressList
impl RefUnwindSafe for AddressList
impl Send for AddressList
impl Sync for AddressList
impl Unpin for AddressList
impl UnsafeUnpin for AddressList
impl UnwindSafe for AddressList
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