pub struct TargetRegion {
pub country_code: LangCode,
pub regions: Vec<TargetRegionEntry>,
}Expand description
target_region body (Table 156, §6.4.12). The region loop is unfolded.
Fields§
§country_code: LangCodeLeading country_code(24).
regions: Vec<TargetRegionEntry>Region entries (the loop).
Trait Implementations§
Source§impl Clone for TargetRegion
impl Clone for TargetRegion
Source§fn clone(&self) -> TargetRegion
fn clone(&self) -> TargetRegion
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 TargetRegion
impl Debug for TargetRegion
impl Eq for TargetRegion
Source§impl<'a> ExtensionBodyDef<'a> for TargetRegion
impl<'a> ExtensionBodyDef<'a> for TargetRegion
Source§impl<'a> Parse<'a> for TargetRegion
impl<'a> Parse<'a> for TargetRegion
Source§impl PartialEq for TargetRegion
impl PartialEq for TargetRegion
Source§fn eq(&self, other: &TargetRegion) -> bool
fn eq(&self, other: &TargetRegion) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for TargetRegion
impl Serialize for TargetRegion
Source§impl Serialize for TargetRegion
impl Serialize for TargetRegion
Source§type Error = Error
type Error = Error
The error type this implementer returns (usually the same as the
corresponding
Parse impl, but need not be).Source§fn serialized_len(&self) -> usize
fn serialized_len(&self) -> usize
Number of bytes
serialize_into will write.impl StructuralPartialEq for TargetRegion
Auto Trait Implementations§
impl Freeze for TargetRegion
impl RefUnwindSafe for TargetRegion
impl Send for TargetRegion
impl Sync for TargetRegion
impl Unpin for TargetRegion
impl UnsafeUnpin for TargetRegion
impl UnwindSafe for TargetRegion
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