pub struct PostalCodeRange {
pub postal_code_range_begin: Option<String>,
pub postal_code_range_end: Option<String>,
}
Expand description
There is no detailed description.
This type is not used in any activity, and only used as part of another schema.
Fields§
§postal_code_range_begin: Option<String>
A postal code or a pattern of the form prefix*
denoting the inclusive lower bound of the range defining the area. Examples values: "94108"
, "9410*"
, "9*"
. Required.
postal_code_range_end: Option<String>
A postal code or a pattern of the form prefix*
denoting the inclusive upper bound of the range defining the area. It must have the same length as postalCodeRangeBegin
: if postalCodeRangeBegin
is a postal code then postalCodeRangeEnd
must be a postal code too; if postalCodeRangeBegin
is a pattern then postalCodeRangeEnd
must be a pattern with the same prefix length. Optional: if not set, then the area is defined as being all the postal codes matching postalCodeRangeBegin
.
Trait Implementations§
Source§impl Clone for PostalCodeRange
impl Clone for PostalCodeRange
Source§fn clone(&self) -> PostalCodeRange
fn clone(&self) -> PostalCodeRange
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for PostalCodeRange
impl Debug for PostalCodeRange
Source§impl Default for PostalCodeRange
impl Default for PostalCodeRange
Source§fn default() -> PostalCodeRange
fn default() -> PostalCodeRange
Source§impl<'de> Deserialize<'de> for PostalCodeRange
impl<'de> Deserialize<'de> for PostalCodeRange
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>,
Source§impl Serialize for PostalCodeRange
impl Serialize for PostalCodeRange
impl Part for PostalCodeRange
Auto Trait Implementations§
impl Freeze for PostalCodeRange
impl RefUnwindSafe for PostalCodeRange
impl Send for PostalCodeRange
impl Sync for PostalCodeRange
impl Unpin for PostalCodeRange
impl UnwindSafe for PostalCodeRange
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more