[][src]Struct pubnub_core::data::target::Standard

pub struct Standard { /* fields omitted */ }

Standard target represents a channel names list and a channel group names list that together are suitable for use in the API calls. The value of this type is guaranteed to fulfill the standard invariants required by the API calls - that at least one channel or channel group has to be specified.

Methods

impl Standard[src]

pub fn new(
    channels: Vec<Name>,
    channel_groups: Vec<Name>
) -> Result<Self, (Vec<Name>, Vec<Name>)>
[src]

Create a standard target from a list of channels and a list of channel groups.

Errors

Retuns an error when both channels and channel groups lists are empty.

#[must_use]pub fn into_inner(self) -> (Vec<Name>, Vec<Name>)[src]

Extract target value into channels and channel groups.

Trait Implementations

impl Clone for Standard[src]

impl Debug for Standard[src]

impl Eq for Standard[src]

impl PartialEq<Standard> for Standard[src]

impl StructuralEq for Standard[src]

impl StructuralPartialEq for Standard[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Any for T where
    T: Any + ?Sized

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,