pub enum Response {
Error(ErrorResponse),
Subscribed(SubscribedResponse),
SubscribedWithInvalidFeedIdsIgnored(SubscribedWithInvalidFeedIdsIgnoredResponse),
Unsubscribed(UnsubscribedResponse),
SubscriptionError(SubscriptionErrorResponse),
StreamUpdated(StreamUpdatedResponse),
}
Expand description
A JSON response sent from the server to the client.
Variants§
Error(ErrorResponse)
Subscribed(SubscribedResponse)
SubscribedWithInvalidFeedIdsIgnored(SubscribedWithInvalidFeedIdsIgnoredResponse)
Unsubscribed(UnsubscribedResponse)
SubscriptionError(SubscriptionErrorResponse)
StreamUpdated(StreamUpdatedResponse)
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Response
impl<'de> Deserialize<'de> for Response
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<ErrorResponse> for Response
impl From<ErrorResponse> for Response
Source§fn from(value: ErrorResponse) -> Self
fn from(value: ErrorResponse) -> Self
Converts to this type from the input type.
Source§impl From<StreamUpdatedResponse> for Response
impl From<StreamUpdatedResponse> for Response
Source§fn from(value: StreamUpdatedResponse) -> Self
fn from(value: StreamUpdatedResponse) -> Self
Converts to this type from the input type.
Source§impl From<SubscribedResponse> for Response
impl From<SubscribedResponse> for Response
Source§fn from(value: SubscribedResponse) -> Self
fn from(value: SubscribedResponse) -> Self
Converts to this type from the input type.
Source§impl From<SubscribedWithInvalidFeedIdsIgnoredResponse> for Response
impl From<SubscribedWithInvalidFeedIdsIgnoredResponse> for Response
Source§fn from(value: SubscribedWithInvalidFeedIdsIgnoredResponse) -> Self
fn from(value: SubscribedWithInvalidFeedIdsIgnoredResponse) -> Self
Converts to this type from the input type.
Source§impl From<SubscriptionErrorResponse> for Response
impl From<SubscriptionErrorResponse> for Response
Source§fn from(value: SubscriptionErrorResponse) -> Self
fn from(value: SubscriptionErrorResponse) -> Self
Converts to this type from the input type.
Source§impl From<UnsubscribedResponse> for Response
impl From<UnsubscribedResponse> for Response
Source§fn from(value: UnsubscribedResponse) -> Self
fn from(value: UnsubscribedResponse) -> Self
Converts to this type from the input type.
impl Eq for Response
impl StructuralPartialEq for Response
Auto Trait Implementations§
impl Freeze for Response
impl RefUnwindSafe for Response
impl Send for Response
impl Sync for Response
impl Unpin for Response
impl UnwindSafe for Response
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more