pub struct Subscription {
pub id: String,
pub endpoint: String,
pub p256dh: String,
pub auth: String,
pub device_label: String,
pub auth_session: String,
pub created_at: i64,
pub expires_at: Option<i64>,
pub last_success_at: Option<i64>,
pub last_error: Option<String>,
}Expand description
One stored subscription.
Fields§
§id: String§endpoint: String§p256dh: String§auth: String§device_label: String§auth_session: StringThe signed-in session that subscribed it (Authenticated::session_id).
created_at: i64§expires_at: Option<i64>§last_success_at: Option<i64>§last_error: Option<String>Implementations§
Source§impl Subscription
impl Subscription
Sourcepub fn endpoint_host(&self) -> String
pub fn endpoint_host(&self) -> String
The endpoint’s host name: what Settings shows of it.
Trait Implementations§
Source§impl Clone for Subscription
impl Clone for Subscription
Source§impl Debug for Subscription
impl Debug for Subscription
impl Eq for Subscription
Source§impl PartialEq for Subscription
impl PartialEq for Subscription
impl StructuralPartialEq for Subscription
Auto Trait Implementations§
impl Freeze for Subscription
impl RefUnwindSafe for Subscription
impl Send for Subscription
impl Sync for Subscription
impl Unpin for Subscription
impl UnsafeUnpin for Subscription
impl UnwindSafe for Subscription
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