pub struct Ticket {
pub id: String,
pub pusher: String,
pub relays: Vec<String>,
pub sealed: String,
pub p256dh: String,
pub auth: String,
pub origin: String,
pub h: String,
pub mk: String,
}Fields§
§id: StringThe device subscription: a newer ticket with the same id replaces the old one.
pusher: StringHex pubkey of the pusher the sealed part is for, and where it listens.
relays: Vec<String>§sealed: String§p256dh: StringThe subscription’s RFC 8291 keys, base64url.
auth: String§origin: StringWhere the notification opens on the device.
h: StringThis contact’s handle on the device, and the key proving a notice came from them.
mk: StringImplementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Ticket
impl<'de> Deserialize<'de> for Ticket
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
impl Eq for Ticket
impl StructuralPartialEq for Ticket
Auto Trait Implementations§
impl Forget for Ticket
impl Freeze for Ticket
impl Move for Ticket
impl RefUnwindSafe for Ticket
impl Send for Ticket
impl Sync for Ticket
impl Unpin for Ticket
impl UnsafeUnpin for Ticket
impl UnwindSafe for Ticket
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