Enum pb_async::PushTarget [−][src]
pub enum PushTarget<'a> { SelfUser {}, Device { iden: &'a str, }, User { email: &'a str, }, Channel { tag: &'a str, }, Client { iden: &'a str, }, }
Target which data can be pushed to.
Used in Client::push.
Variants
SelfUser
Push to generic self-user stream.
Fields of SelfUser
Device
Send to a specific device.
Fields of Device
iden: &'a str | Device identifier - see [Device.iden] and Client::list_devices. |
User
Send to a user by email address, or send by email if this is not a PushBullet user.
Fields of User
email: &'a str | User email - see [User.email] and Client::get_user. |
Channel
Send to all subscribers in a channel by tag.
Fields of Channel
tag: &'a str | Channel tag. No way to retrieve this in current crate API. |
Client
Send to all users who have granted access to an OAuth by iden.
Fields of Client
iden: &'a str | OAuth client iden. No way to retrieve this in current crate API. |
Trait Implementations
impl<'a> Copy for PushTarget<'a>
[src]
impl<'a> Copy for PushTarget<'a>
impl<'a> Clone for PushTarget<'a>
[src]
impl<'a> Clone for PushTarget<'a>
fn clone(&self) -> PushTarget<'a>
[src]
fn clone(&self) -> PushTarget<'a>
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0
[src]Performs copy-assignment from source
. Read more
impl<'a> Debug for PushTarget<'a>
[src]
impl<'a> Debug for PushTarget<'a>
Auto Trait Implementations
impl<'a> Send for PushTarget<'a>
impl<'a> Send for PushTarget<'a>
impl<'a> Sync for PushTarget<'a>
impl<'a> Sync for PushTarget<'a>