pub enum ServerError<U: Debug> {
ClientError(U),
InternalError(String),
}
Variants§
Trait Implementations§
Source§impl<U: Clone + Debug> Clone for ServerError<U>
impl<U: Clone + Debug> Clone for ServerError<U>
Source§fn clone(&self) -> ServerError<U>
fn clone(&self) -> ServerError<U>
Returns a duplicate 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 moreSource§impl<'de, U> Deserialize<'de> for ServerError<U>where
U: Deserialize<'de> + Debug,
impl<'de, U> Deserialize<'de> for ServerError<U>where
U: Deserialize<'de> + Debug,
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<DecodeError> for ServerError<AppStoreNotificationError>
impl From<DecodeError> for ServerError<AppStoreNotificationError>
Source§fn from(_: DecodeError) -> Self
fn from(_: DecodeError) -> Self
Converts to this type from the input type.
Source§impl From<Error> for ServerError<AppStoreNotificationError>
impl From<Error> for ServerError<AppStoreNotificationError>
Source§impl From<Error> for ServerError<UpgradeAccountAppStoreError>
impl From<Error> for ServerError<UpgradeAccountAppStoreError>
Source§impl From<Error> for ServerError<UpgradeAccountAppStoreError>
impl From<Error> for ServerError<UpgradeAccountAppStoreError>
Source§impl<T: Debug> From<ParseIdError> for ServerError<T>
impl<T: Debug> From<ParseIdError> for ServerError<T>
Source§fn from(err: ParseIdError) -> Self
fn from(err: ParseIdError) -> Self
Converts to this type from the input type.
Source§impl<T: Debug, G> From<PoisonError<G>> for ServerError<T>
impl<T: Debug, G> From<PoisonError<G>> for ServerError<T>
Source§fn from(value: PoisonError<G>) -> Self
fn from(value: PoisonError<G>) -> Self
Converts to this type from the input type.
Source§impl From<ServerError<DeleteAccountHelperError>> for ServerError<AdminDisappearAccountError>
impl From<ServerError<DeleteAccountHelperError>> for ServerError<AdminDisappearAccountError>
Source§fn from(err: ServerError<DeleteAccountHelperError>) -> Self
fn from(err: ServerError<DeleteAccountHelperError>) -> Self
Converts to this type from the input type.
Source§impl From<ServerError<DeleteAccountHelperError>> for ServerError<DeleteAccountError>
impl From<ServerError<DeleteAccountHelperError>> for ServerError<DeleteAccountError>
Source§fn from(err: ServerError<DeleteAccountHelperError>) -> Self
fn from(err: ServerError<DeleteAccountHelperError>) -> Self
Converts to this type from the input type.
Source§impl From<ServerError<GetUsageHelperError>> for ServerError<CancelSubscriptionError>
impl From<ServerError<GetUsageHelperError>> for ServerError<CancelSubscriptionError>
Source§fn from(e: ServerError<GetUsageHelperError>) -> Self
fn from(e: ServerError<GetUsageHelperError>) -> Self
Converts to this type from the input type.
Source§impl From<ServerError<GetUsageHelperError>> for ServerError<GetUsageError>
impl From<ServerError<GetUsageHelperError>> for ServerError<GetUsageError>
Source§fn from(e: ServerError<GetUsageHelperError>) -> Self
fn from(e: ServerError<GetUsageHelperError>) -> Self
Converts to this type from the input type.
Source§impl From<ServerError<LockBillingWorkflowError>> for ServerError<AdminSetUserTierError>
impl From<ServerError<LockBillingWorkflowError>> for ServerError<AdminSetUserTierError>
Source§fn from(err: ServerError<LockBillingWorkflowError>) -> Self
fn from(err: ServerError<LockBillingWorkflowError>) -> Self
Converts to this type from the input type.
Source§impl From<ServerError<LockBillingWorkflowError>> for ServerError<CancelSubscriptionError>
impl From<ServerError<LockBillingWorkflowError>> for ServerError<CancelSubscriptionError>
Source§fn from(err: ServerError<LockBillingWorkflowError>) -> Self
fn from(err: ServerError<LockBillingWorkflowError>) -> Self
Converts to this type from the input type.
Source§impl From<ServerError<LockBillingWorkflowError>> for ServerError<UpgradeAccountAppStoreError>
impl From<ServerError<LockBillingWorkflowError>> for ServerError<UpgradeAccountAppStoreError>
Source§fn from(err: ServerError<LockBillingWorkflowError>) -> Self
fn from(err: ServerError<LockBillingWorkflowError>) -> Self
Converts to this type from the input type.
Source§impl From<ServerError<LockBillingWorkflowError>> for ServerError<UpgradeAccountGooglePlayError>
impl From<ServerError<LockBillingWorkflowError>> for ServerError<UpgradeAccountGooglePlayError>
Source§fn from(err: ServerError<LockBillingWorkflowError>) -> Self
fn from(err: ServerError<LockBillingWorkflowError>) -> Self
Converts to this type from the input type.
Source§impl From<ServerError<LockBillingWorkflowError>> for ServerError<UpgradeAccountStripeError>
impl From<ServerError<LockBillingWorkflowError>> for ServerError<UpgradeAccountStripeError>
Source§fn from(err: ServerError<LockBillingWorkflowError>) -> Self
fn from(err: ServerError<LockBillingWorkflowError>) -> Self
Converts to this type from the input type.
Source§fn from(err: SharedError) -> Self
fn from(err: SharedError) -> Self
Converts to this type from the input type.
Source§fn from(err: SharedError) -> Self
fn from(err: SharedError) -> Self
Converts to this type from the input type.
Source§fn from(err: SharedError) -> Self
fn from(err: SharedError) -> Self
Converts to this type from the input type.
Source§fn from(err: SharedError) -> Self
fn from(err: SharedError) -> Self
Converts to this type from the input type.
Source§fn from(err: SharedError) -> Self
fn from(err: SharedError) -> Self
Converts to this type from the input type.
Source§fn from(err: SharedError) -> Self
fn from(err: SharedError) -> Self
Converts to this type from the input type.
Source§fn from(err: SharedError) -> Self
fn from(err: SharedError) -> Self
Converts to this type from the input type.
Source§fn from(err: SharedError) -> Self
fn from(err: SharedError) -> Self
Converts to this type from the input type.
Source§fn from(err: SharedError) -> Self
fn from(err: SharedError) -> Self
Converts to this type from the input type.
Source§fn from(err: SharedError) -> Self
fn from(err: SharedError) -> Self
Converts to this type from the input type.
Source§fn from(err: SharedError) -> Self
fn from(err: SharedError) -> Self
Converts to this type from the input type.
Source§fn from(err: SharedError) -> Self
fn from(err: SharedError) -> Self
Converts to this type from the input type.
Source§fn from(err: SharedError) -> Self
fn from(err: SharedError) -> Self
Converts to this type from the input type.
Source§fn from(err: SharedError) -> Self
fn from(err: SharedError) -> Self
Converts to this type from the input type.
Source§impl From<SimpleGCPError> for ServerError<CancelSubscriptionError>
impl From<SimpleGCPError> for ServerError<CancelSubscriptionError>
Source§fn from(e: SimpleGCPError) -> Self
fn from(e: SimpleGCPError) -> Self
Converts to this type from the input type.
Source§impl From<SimpleGCPError> for ServerError<UpgradeAccountGooglePlayError>
impl From<SimpleGCPError> for ServerError<UpgradeAccountGooglePlayError>
Source§fn from(e: SimpleGCPError) -> Self
fn from(e: SimpleGCPError) -> Self
Converts to this type from the input type.
Source§impl From<SimplifiedStripeError> for ServerError<UpgradeAccountStripeError>
impl From<SimplifiedStripeError> for ServerError<UpgradeAccountStripeError>
Source§fn from(e: SimplifiedStripeError) -> Self
fn from(e: SimplifiedStripeError) -> Self
Converts to this type from the input type.
Source§impl From<WebhookError> for ServerError<StripeWebhookError>
impl From<WebhookError> for ServerError<StripeWebhookError>
Source§fn from(e: WebhookError) -> Self
fn from(e: WebhookError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl<U> Freeze for ServerError<U>where
U: Freeze,
impl<U> RefUnwindSafe for ServerError<U>where
U: RefUnwindSafe,
impl<U> Send for ServerError<U>where
U: Send,
impl<U> Sync for ServerError<U>where
U: Sync,
impl<U> Unpin for ServerError<U>where
U: Unpin,
impl<U> UnwindSafe for ServerError<U>where
U: UnwindSafe,
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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