#[non_exhaustive]pub struct EndpointAttributesBuilder { /* private fields */ }Expand description
A builder for EndpointAttributes.
Implementations§
source§impl EndpointAttributesBuilder
impl EndpointAttributesBuilder
sourcepub fn device_token(self, input: impl Into<String>) -> Self
pub fn device_token(self, input: impl Into<String>) -> Self
The device token for the GCM, APNS, and APNS_SANDBOX endpoint types.
This field is required.sourcepub fn set_device_token(self, input: Option<String>) -> Self
pub fn set_device_token(self, input: Option<String>) -> Self
The device token for the GCM, APNS, and APNS_SANDBOX endpoint types.
sourcepub fn get_device_token(&self) -> &Option<String>
pub fn get_device_token(&self) -> &Option<String>
The device token for the GCM, APNS, and APNS_SANDBOX endpoint types.
sourcepub fn voip_device_token(self, input: impl Into<String>) -> Self
pub fn voip_device_token(self, input: impl Into<String>) -> Self
The VOIP device token for the APNS and APNS_SANDBOX endpoint types.
sourcepub fn set_voip_device_token(self, input: Option<String>) -> Self
pub fn set_voip_device_token(self, input: Option<String>) -> Self
The VOIP device token for the APNS and APNS_SANDBOX endpoint types.
sourcepub fn get_voip_device_token(&self) -> &Option<String>
pub fn get_voip_device_token(&self) -> &Option<String>
The VOIP device token for the APNS and APNS_SANDBOX endpoint types.
sourcepub fn build(self) -> Result<EndpointAttributes, BuildError>
pub fn build(self) -> Result<EndpointAttributes, BuildError>
Consumes the builder and constructs a EndpointAttributes.
This method will fail if any of the following fields are not set:
Trait Implementations§
source§impl Clone for EndpointAttributesBuilder
impl Clone for EndpointAttributesBuilder
source§fn clone(&self) -> EndpointAttributesBuilder
fn clone(&self) -> EndpointAttributesBuilder
Returns a copy 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 EndpointAttributesBuilder
impl Debug for EndpointAttributesBuilder
source§impl Default for EndpointAttributesBuilder
impl Default for EndpointAttributesBuilder
source§fn default() -> EndpointAttributesBuilder
fn default() -> EndpointAttributesBuilder
Returns the “default value” for a type. Read more
source§impl PartialEq for EndpointAttributesBuilder
impl PartialEq for EndpointAttributesBuilder
source§fn eq(&self, other: &EndpointAttributesBuilder) -> bool
fn eq(&self, other: &EndpointAttributesBuilder) -> bool
This method tests for
self and other values to be equal, and is used
by ==.impl StructuralPartialEq for EndpointAttributesBuilder
Auto Trait Implementations§
impl Freeze for EndpointAttributesBuilder
impl RefUnwindSafe for EndpointAttributesBuilder
impl Send for EndpointAttributesBuilder
impl Sync for EndpointAttributesBuilder
impl Unpin for EndpointAttributesBuilder
impl UnwindSafe for EndpointAttributesBuilder
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> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Creates a shared type from an unshared type.