Struct jmap_client::push_subscription::PushSubscription
source · [−]pub struct PushSubscription<State = Get> { /* private fields */ }Implementations
sourceimpl PushSubscription<Get>
impl PushSubscription<Get>
pub fn id(&self) -> Option<&str>
pub fn take_id(&mut self) -> String
pub fn device_client_id(&self) -> Option<&str>
pub fn url(&self) -> Option<&str>
pub fn keys(&self) -> Option<&Keys>
pub fn verification_code(&self) -> Option<&str>
pub fn expires(&self) -> Option<i64>
pub fn types(&self) -> Option<&[TypeState]>
sourceimpl PushSubscription<Set>
impl PushSubscription<Set>
pub fn device_client_id(
&mut self,
device_client_id: impl Into<String>
) -> &mut Self
pub fn url(&mut self, url: impl Into<String>) -> &mut Self
pub fn verification_code(
&mut self,
verification_code: impl Into<String>
) -> &mut Self
pub fn keys(&mut self, keys: Keys) -> &mut Self
pub fn expires(&mut self, expires: i64) -> &mut Self
pub fn types(
&mut self,
types: Option<impl IntoIterator<Item = TypeState>>
) -> &mut Self
Trait Implementations
sourceimpl ChangesObject for PushSubscription<Get>
impl ChangesObject for PushSubscription<Get>
type ChangesResponse = ()
sourceimpl ChangesObject for PushSubscription<Set>
impl ChangesObject for PushSubscription<Set>
type ChangesResponse = ()
sourceimpl<State: Clone> Clone for PushSubscription<State>
impl<State: Clone> Clone for PushSubscription<State>
sourcefn clone(&self) -> PushSubscription<State>
fn clone(&self) -> PushSubscription<State>
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read more
sourceimpl<State: Debug> Debug for PushSubscription<State>
impl<State: Debug> Debug for PushSubscription<State>
sourceimpl<'de, State> Deserialize<'de> for PushSubscription<State>
impl<'de, State> Deserialize<'de> for PushSubscription<State>
sourcefn 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
sourceimpl GetObject for PushSubscription<Get>
impl GetObject for PushSubscription<Get>
type GetArguments = ()
sourceimpl GetObject for PushSubscription<Set>
impl GetObject for PushSubscription<Set>
type GetArguments = ()
sourceimpl Object for PushSubscription<Get>
impl Object for PushSubscription<Get>
type Property = Property
fn requires_account_id() -> bool
sourceimpl Object for PushSubscription<Set>
impl Object for PushSubscription<Set>
type Property = Property
fn requires_account_id() -> bool
sourceimpl<State> Serialize for PushSubscription<State>
impl<State> Serialize for PushSubscription<State>
sourceimpl SetObject for PushSubscription<Get>
impl SetObject for PushSubscription<Get>
type SetArguments = SetArguments
fn new(_create_id: Option<usize>) -> Self
fn create_id(&self) -> Option<String>
sourceimpl SetObject for PushSubscription<Set>
impl SetObject for PushSubscription<Set>
type SetArguments = SetArguments
fn new(_create_id: Option<usize>) -> Self
fn create_id(&self) -> Option<String>
Auto Trait Implementations
impl<State> RefUnwindSafe for PushSubscription<State>where
State: RefUnwindSafe,
impl<State> Send for PushSubscription<State>where
State: Send,
impl<State> Sync for PushSubscription<State>where
State: Sync,
impl<State> Unpin for PushSubscription<State>where
State: Unpin,
impl<State> UnwindSafe for PushSubscription<State>where
State: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where
S: Into<Dispatch>,
Attaches the provided Subscriber to this type, returning a
WithDispatch wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber to this type, returning a
WithDispatch wrapper. Read more