pub struct Location { /* private fields */ }Implementations§
Source§impl Location
impl Location
pub fn new(kind: LocationKind) -> Self
pub fn with_label<S: Into<String>>(self, label: Option<S>) -> Self
pub fn with_grid_locator(self, grid_locator: Option<MaidenheadLocator>) -> Self
pub fn with_itu_region(self, itu_region: Option<Region>) -> Self
pub fn with_country(self, country: Option<CountryCode>) -> Self
pub fn with_mailing_address<S: Into<String>>( self, mailing_address: Option<S>, ) -> Self
pub const fn kind(&self) -> LocationKind
pub fn set_kind(&mut self, kind: LocationKind)
pub const fn grid_locator(&self) -> Option<&MaidenheadLocator>
pub fn set_grid_locator(&mut self, grid_locator: MaidenheadLocator)
pub fn unset_grid_locator(&mut self)
pub const fn itu_region(&self) -> Option<&Region>
pub fn set_itu_region(&mut self, itu_region: Region)
pub fn unset_itu_region(&mut self)
pub const fn country(&self) -> Option<&CountryCode>
pub fn set_country(&mut self, country: CountryCode)
pub fn unset_country(&mut self)
pub const fn mailing_address(&self) -> Option<&String>
pub fn set_mailing_address<S: Into<String>>(&mut self, mailing_address: S)
pub fn unset_mailing_address(&mut self)
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Location
impl<'de> Deserialize<'de> for Location
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
impl StructuralPartialEq for Location
Auto Trait Implementations§
impl Freeze for Location
impl RefUnwindSafe for Location
impl Send for Location
impl Sync for Location
impl Unpin for Location
impl UnsafeUnpin for Location
impl UnwindSafe for Location
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