Struct librespot_protocol::metadata::Restriction[][src]

pub struct Restriction {
    pub unknown_fields: UnknownFields,
    pub cached_size: CachedSize,
    // some fields omitted
}

Fields

unknown_fields: UnknownFieldscached_size: CachedSize

Implementations

impl Restriction[src]

pub fn new() -> Restriction[src]

pub fn get_catalogue(&self) -> &[Restriction_Catalogue][src]

pub fn clear_catalogue(&mut self)[src]

pub fn set_catalogue(&mut self, v: Vec<Restriction_Catalogue>)[src]

pub fn mut_catalogue(&mut self) -> &mut Vec<Restriction_Catalogue>[src]

pub fn take_catalogue(&mut self) -> Vec<Restriction_Catalogue>[src]

pub fn get_countries_allowed(&self) -> &str[src]

pub fn clear_countries_allowed(&mut self)[src]

pub fn has_countries_allowed(&self) -> bool[src]

pub fn set_countries_allowed(&mut self, v: String)[src]

pub fn mut_countries_allowed(&mut self) -> &mut String[src]

pub fn take_countries_allowed(&mut self) -> String[src]

pub fn get_countries_forbidden(&self) -> &str[src]

pub fn clear_countries_forbidden(&mut self)[src]

pub fn has_countries_forbidden(&self) -> bool[src]

pub fn set_countries_forbidden(&mut self, v: String)[src]

pub fn mut_countries_forbidden(&mut self) -> &mut String[src]

pub fn take_countries_forbidden(&mut self) -> String[src]

pub fn get_typ(&self) -> Restriction_Type[src]

pub fn clear_typ(&mut self)[src]

pub fn has_typ(&self) -> bool[src]

pub fn set_typ(&mut self, v: Restriction_Type)[src]

pub fn get_catalogue_str(&self) -> &[String][src]

pub fn clear_catalogue_str(&mut self)[src]

pub fn set_catalogue_str(&mut self, v: RepeatedField<String>)[src]

pub fn mut_catalogue_str(&mut self) -> &mut RepeatedField<String>[src]

pub fn take_catalogue_str(&mut self) -> RepeatedField<String>[src]

Trait Implementations

impl Clear for Restriction[src]

impl Clone for Restriction[src]

impl Debug for Restriction[src]

impl Default for Restriction[src]

impl<'a> Default for &'a Restriction[src]

impl Message for Restriction[src]

impl PartialEq<Restriction> for Restriction[src]

impl ProtobufValue for Restriction[src]

impl StructuralPartialEq for Restriction[src]

Auto Trait Implementations

Blanket Implementations

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

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.