[−][src]Struct sns_push_notifications::SnsClient
A client for interacting with SNS
Methods
impl SnsClient
[src]
pub fn new_checked(region: Region) -> Result<Self, Error>
[src]
Create a new client for a specific region.
It requires that the AWS_ACCESS_KEY_ID
and AWS_SECRET_ACCESS_KEY
environment variables
are set. It will return an error if either of them aren't set.
pub fn register_device(
&self,
token: &str,
platform_application_arn: &str
) -> Result<EndpointArn, Error>
[src]
&self,
token: &str,
platform_application_arn: &str
) -> Result<EndpointArn, Error>
Register a device with SNS and get back its corresponding ID.
If a device with the given token has already been registered you'll get back the same ID.
You can get the platform_application_arn
from the SNS dashboard.
pub fn send_push(
&self,
push: &Push,
endpoint_arn: &EndpointArn
) -> Result<(), Error>
[src]
&self,
push: &Push,
endpoint_arn: &EndpointArn
) -> Result<(), Error>
Send a push notification to a specific endpoint arn.
Auto Trait Implementations
Blanket Implementations
impl<T, U> Into for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From for T
[src]
impl<T, U> TryFrom for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = !
🔬 This is a nightly-only experimental API. (
try_from
)The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T> Borrow for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
🔬 This is a nightly-only experimental API. (
try_from
)The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> BorrowMut for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Same for T
type Output = T
Should always be Self