pub struct Agency { /* private fields */ }Implementations§
Source§impl Agency
impl Agency
pub fn new(name: &str, kind: AgencyKind) -> Self
pub fn with_abbreviation(self, abbreviation: &str) -> Self
pub fn with_jurisdiction(self, jurisdiction: Jurisdiction) -> Self
pub fn with_url(self, url: &str) -> Self
pub fn within_jurisdiction(&self, country: &CountryCode) -> Option<bool>
pub fn name(&self) -> &String
pub fn abbreviation(&self) -> Option<&String>
pub fn kind(&self) -> AgencyKind
pub fn jurisdiction(&self) -> Option<&Jurisdiction>
pub fn url(&self) -> Option<&String>
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Agency
impl<'de> Deserialize<'de> for Agency
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 Agency
Auto Trait Implementations§
impl Freeze for Agency
impl RefUnwindSafe for Agency
impl Send for Agency
impl Sync for Agency
impl Unpin for Agency
impl UnsafeUnpin for Agency
impl UnwindSafe for Agency
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