Struct twitch_api::pubsub::TwitchResponse
source · [−]Available on crate feature
pubsub
only.Expand description
Response from twitch PubSub
Fields
nonce: Option<String>
The nonce that was passed in the request, if one was provided there
error: Option<String>
The error message associated with the request, or an empty string if there is no error
Implementations
sourceimpl TwitchResponse
impl TwitchResponse
sourcepub fn is_successful(&self) -> bool
pub fn is_successful(&self) -> bool
Whether response indicates success or not
Trait Implementations
sourceimpl Clone for TwitchResponse
impl Clone for TwitchResponse
sourcefn clone(&self) -> TwitchResponse
fn clone(&self) -> TwitchResponse
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for TwitchResponse
impl Debug for TwitchResponse
sourceimpl<'de> Deserialize<'de> for TwitchResponse
impl<'de> Deserialize<'de> for TwitchResponse
sourcefn 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
sourceimpl PartialEq<TwitchResponse> for TwitchResponse
impl PartialEq<TwitchResponse> for TwitchResponse
sourcefn eq(&self, other: &TwitchResponse) -> bool
fn eq(&self, other: &TwitchResponse) -> bool
impl Eq for TwitchResponse
impl StructuralEq for TwitchResponse
impl StructuralPartialEq for TwitchResponse
Auto Trait Implementations
impl RefUnwindSafe for TwitchResponse
impl Send for TwitchResponse
impl Sync for TwitchResponse
impl Unpin for TwitchResponse
impl UnwindSafe for TwitchResponse
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
sourcefn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.