[−][src]Struct pubnub_core::data::target::Standard
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]
channels: Vec<Name>,
channel_groups: Vec<Name>
) -> Result<Self, (Vec<Name>, Vec<Name>)>
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
impl RefUnwindSafe for Standard
impl Send for Standard
impl Sync for Standard
impl Unpin for Standard
impl UnwindSafe for Standard
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,
impl<T> Any for T where
T: Any + ?Sized,
T: Any + ?Sized,
fn type_id_compat(&self) -> TypeId
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T[src]
impl<T> From<T> for T[src]
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone, [src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T[src]
fn clone_into(&self, target: &mut T)[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>, [src]
U: Into<T>,
type Error = Infallible
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, U> TryInto<U> for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,