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

Push to generic self-user stream.

Fields of SelfUser

Send to a specific device.

Fields of Device

Device identifier - see [Device.iden] and Client::list_devices.

Send to a user by email address, or send by email if this is not a PushBullet user.

Fields of User

User email - see [User.email] and Client::get_user.

Send to all subscribers in a channel by tag.

Fields of Channel

Channel tag. No way to retrieve this in current crate API.

Send to all users who have granted access to an OAuth by iden.

Fields of Client

OAuth client iden. No way to retrieve this in current crate API.

Trait Implementations

impl<'a> Copy for PushTarget<'a>
[src]

impl<'a> Clone for PushTarget<'a>
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl<'a> Debug for PushTarget<'a>
[src]

Formats the value using the given formatter. Read more

Auto Trait Implementations

impl<'a> Send for PushTarget<'a>

impl<'a> Sync for PushTarget<'a>