pub enum ResponseType {
BusUpdate,
Message(Option<MessageData>),
Version(Option<VersionData>),
ContactList(Option<Vec<Account>>),
LinkingUri(Option<LinkingUri>),
LinkingError(Option<LinkingError>),
Subscribed,
Unsubscribed,
Unknown(String, Value),
}
Expand description
Indicates which kind of Signald message is received
Variants§
BusUpdate
Message(Option<MessageData>)
Version(Option<VersionData>)
ContactList(Option<Vec<Account>>)
LinkingUri(Option<LinkingUri>)
LinkingError(Option<LinkingError>)
Subscribed
Unsubscribed
Unknown(String, Value)
An unknown response String parameter is the type Value parameter is a Value of the data
Implementations§
Source§impl ResponseType
impl ResponseType
Sourcepub fn new(typ: &str, val: &Value) -> ResponseType
pub fn new(typ: &str, val: &Value) -> ResponseType
Create a ResponseType from response data
Trait Implementations§
Source§impl Clone for ResponseType
impl Clone for ResponseType
Source§fn clone(&self) -> ResponseType
fn clone(&self) -> ResponseType
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl Freeze for ResponseType
impl RefUnwindSafe for ResponseType
impl Send for ResponseType
impl Sync for ResponseType
impl Unpin for ResponseType
impl UnwindSafe for ResponseType
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