pub struct PushTicketId(/* private fields */);Expand description
The ID a provider issued for one accepted notification.
Poll the provider’s receipt for it through PushReceiptSource.
Implementations§
Source§impl PushTicketId
impl PushTicketId
Sourcepub fn new(id: impl Into<String>) -> Result<Self, PushValidationError>
pub fn new(id: impl Into<String>) -> Result<Self, PushValidationError>
Validates a ticket ID: 1 to MAX_PUSH_TICKET_ID_LENGTH bytes of visible ASCII.
§Errors
Returns PushValidationError::TicketId for any other value.
Trait Implementations§
Source§impl Clone for PushTicketId
impl Clone for PushTicketId
Source§impl Debug for PushTicketId
impl Debug for PushTicketId
impl Eq for PushTicketId
Source§impl Hash for PushTicketId
impl Hash for PushTicketId
Source§impl Ord for PushTicketId
impl Ord for PushTicketId
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialEq for PushTicketId
impl PartialEq for PushTicketId
Source§impl PartialOrd for PushTicketId
impl PartialOrd for PushTicketId
impl StructuralPartialEq for PushTicketId
Auto Trait Implementations§
impl Freeze for PushTicketId
impl RefUnwindSafe for PushTicketId
impl Send for PushTicketId
impl Sync for PushTicketId
impl Unpin for PushTicketId
impl UnsafeUnpin for PushTicketId
impl UnwindSafe for PushTicketId
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> Comparable<K> for Q
impl<Q, K> Comparable<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§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.