pub enum PushValidationError {
DeviceToken,
DeviceTimeZone,
DeliveryKind,
TicketId,
}Expand description
A value rejected before it reached a store.
The display text names the field only. It never repeats the rejected value, so the error is safe to log or return to a client.
Variants§
DeviceToken
The device token is empty, too long, or not printable ASCII.
DeviceTimeZone
The time zone name is empty, too long, or has characters outside an IANA name.
DeliveryKind
The delivery kind is empty, too long, or has characters outside [a-z0-9_.-].
TicketId
The provider ticket ID is empty, too long, or not printable ASCII.
Trait Implementations§
Source§impl Clone for PushValidationError
impl Clone for PushValidationError
impl Copy for PushValidationError
Source§impl Debug for PushValidationError
impl Debug for PushValidationError
Source§impl Display for PushValidationError
impl Display for PushValidationError
impl Eq for PushValidationError
Source§impl Error for PushValidationError
impl Error for PushValidationError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Source§impl PartialEq for PushValidationError
impl PartialEq for PushValidationError
impl StructuralPartialEq for PushValidationError
Auto Trait Implementations§
impl Freeze for PushValidationError
impl RefUnwindSafe for PushValidationError
impl Send for PushValidationError
impl Sync for PushValidationError
impl Unpin for PushValidationError
impl UnsafeUnpin for PushValidationError
impl UnwindSafe for PushValidationError
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.