pub struct Station { /* private fields */ }Implementations§
Source§impl Station
impl Station
pub const fn new(callsign: CallSign) -> Self
pub fn with_location(self, location: Option<Location>) -> Self
pub fn with_operator_name<S: Into<String>>( self, operator_name: Option<S>, ) -> Self
pub const fn callsign(&self) -> &CallSign
pub fn set_callsign(&mut self, callsign: CallSign)
pub const fn location(&self) -> Option<&Location>
pub fn set_location(&mut self, location: Location)
pub fn unset_location(&mut self)
pub const fn operator_name(&self) -> Option<&String>
pub fn set_operator_name<S: Into<String>>(&mut self, operator_name: S)
pub fn unset_operator_name(&mut self)
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Station
impl<'de> Deserialize<'de> for Station
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 Station
Auto Trait Implementations§
impl Freeze for Station
impl RefUnwindSafe for Station
impl Send for Station
impl Sync for Station
impl Unpin for Station
impl UnsafeUnpin for Station
impl UnwindSafe for Station
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