pub enum SubscriptionChannel {
Amadeus,
Notifica,
BajkomatApi,
}Variants§
Implementations§
Source§impl SubscriptionChannel
impl SubscriptionChannel
pub fn get_channel(&self) -> &'static str
pub fn from_channel(value: &str) -> Option<Self>
Trait Implementations§
Source§impl Debug for SubscriptionChannel
impl Debug for SubscriptionChannel
Source§impl<'de> Deserialize<'de> for SubscriptionChannel
impl<'de> Deserialize<'de> for SubscriptionChannel
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
Source§impl From<String> for SubscriptionChannel
impl From<String> for SubscriptionChannel
Source§impl PartialEq for SubscriptionChannel
impl PartialEq for SubscriptionChannel
Source§impl Serialize for SubscriptionChannel
impl Serialize for SubscriptionChannel
impl StructuralPartialEq for SubscriptionChannel
Auto Trait Implementations§
impl Freeze for SubscriptionChannel
impl RefUnwindSafe for SubscriptionChannel
impl Send for SubscriptionChannel
impl Sync for SubscriptionChannel
impl Unpin for SubscriptionChannel
impl UnwindSafe for SubscriptionChannel
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