pub struct PushConfig {
pub audience: Option<String>,
pub authenticate: bool,
}Expand description
PushConfig : Configuration for push delivery mode.
Fields§
§audience: Option<String>The audience claim for OIDC tokens used in push authentication.
authenticate: boolIf true, push messages will include OIDC authentication tokens.
Implementations§
Source§impl PushConfig
impl PushConfig
Sourcepub fn new(authenticate: bool) -> PushConfig
pub fn new(authenticate: bool) -> PushConfig
Configuration for push delivery mode.
Trait Implementations§
Source§impl Clone for PushConfig
impl Clone for PushConfig
Source§fn clone(&self) -> PushConfig
fn clone(&self) -> PushConfig
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for PushConfig
impl Debug for PushConfig
Source§impl Default for PushConfig
impl Default for PushConfig
Source§fn default() -> PushConfig
fn default() -> PushConfig
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for PushConfig
impl<'de> Deserialize<'de> for PushConfig
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
Source§impl PartialEq for PushConfig
impl PartialEq for PushConfig
Source§impl Serialize for PushConfig
impl Serialize for PushConfig
impl StructuralPartialEq for PushConfig
Auto Trait Implementations§
impl Freeze for PushConfig
impl RefUnwindSafe for PushConfig
impl Send for PushConfig
impl Sync for PushConfig
impl Unpin for PushConfig
impl UnwindSafe for PushConfig
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