pub struct TicketID(pub u64);Expand description
Type-safe wrapper for Ticket ID in SDP
Deserializes from both numbers (123) and strings ("123"),
since the SDP API returns IDs as strings.
Tuple Fields§
§0: u64Trait Implementations§
impl Copy for TicketID
Source§impl<'de> Deserialize<'de> for TicketID
impl<'de> Deserialize<'de> for TicketID
Source§fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
Deserialize this value from the given Serde deserializer. Read more
impl Eq for TicketID
impl StructuralPartialEq for TicketID
Auto Trait Implementations§
impl Freeze for TicketID
impl RefUnwindSafe for TicketID
impl Send for TicketID
impl Sync for TicketID
impl Unpin for TicketID
impl UnsafeUnpin for TicketID
impl UnwindSafe for TicketID
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,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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.