Struct librespot_protocol::metadata::Restriction [−][src]
pub struct Restriction { pub unknown_fields: UnknownFields, pub cached_size: CachedSize, // some fields omitted }
Fields
unknown_fields: UnknownFields
cached_size: CachedSize
Implementations
impl Restriction
[src]
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 Clear for Restriction
[src]impl Clone for Restriction
[src]
impl Clone for Restriction
[src]fn clone(&self) -> Restriction
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Default for Restriction
[src]
impl Default for Restriction
[src]fn default() -> Restriction
[src]
impl<'a> Default for &'a Restriction
[src]
impl<'a> Default for &'a Restriction
[src]fn default() -> &'a Restriction
[src]
impl Message for Restriction
[src]
impl Message for Restriction
[src]fn is_initialized(&self) -> bool
[src]
fn merge_from(&mut self, is: &mut CodedInputStream<'_>) -> ProtobufResult<()>
[src]
fn compute_size(&self) -> u32
[src]
fn write_to_with_cached_sizes(
&self,
os: &mut CodedOutputStream<'_>
) -> ProtobufResult<()>
[src]
&self,
os: &mut CodedOutputStream<'_>
) -> ProtobufResult<()>
fn get_cached_size(&self) -> u32
[src]
fn get_unknown_fields(&self) -> &UnknownFields
[src]
fn mut_unknown_fields(&mut self) -> &mut UnknownFields
[src]
fn as_any(&self) -> &dyn Any
[src]
fn as_any_mut(&mut self) -> &mut dyn Any
[src]
fn into_any(self: Box<Self>) -> Box<dyn Any>
[src]
fn descriptor(&self) -> &'static MessageDescriptor
[src]
fn new() -> Restriction
[src]
fn descriptor_static() -> &'static MessageDescriptor
[src]
fn default_instance() -> &'static Restriction
[src]
pub fn write_to(
&self,
os: &mut CodedOutputStream<'_>
) -> Result<(), ProtobufError>
[src]
&self,
os: &mut CodedOutputStream<'_>
) -> Result<(), ProtobufError>
pub fn write_length_delimited_to(
&self,
os: &mut CodedOutputStream<'_>
) -> Result<(), ProtobufError>
[src]
&self,
os: &mut CodedOutputStream<'_>
) -> Result<(), ProtobufError>
pub fn write_length_delimited_to_vec(
&self,
vec: &mut Vec<u8, Global>
) -> Result<(), ProtobufError>
[src]
&self,
vec: &mut Vec<u8, Global>
) -> Result<(), ProtobufError>
pub fn merge_from_bytes(&mut self, bytes: &[u8]) -> Result<(), ProtobufError>
[src]
pub fn check_initialized(&self) -> Result<(), ProtobufError>
[src]
pub fn write_to_writer(&self, w: &mut dyn Write) -> Result<(), ProtobufError>
[src]
pub fn write_to_vec(&self, v: &mut Vec<u8, Global>) -> Result<(), ProtobufError>
[src]
pub fn write_to_bytes(&self) -> Result<Vec<u8, Global>, ProtobufError>
[src]
pub fn write_length_delimited_to_writer(
&self,
w: &mut dyn Write
) -> Result<(), ProtobufError>
[src]
&self,
w: &mut dyn Write
) -> Result<(), ProtobufError>
pub fn write_length_delimited_to_bytes(
&self
) -> Result<Vec<u8, Global>, ProtobufError>
[src]
&self
) -> Result<Vec<u8, Global>, ProtobufError>
pub fn type_id(&self) -> TypeId
[src]
impl PartialEq<Restriction> for Restriction
[src]
impl PartialEq<Restriction> for Restriction
[src]fn eq(&self, other: &Restriction) -> bool
[src]
fn ne(&self, other: &Restriction) -> bool
[src]
impl ProtobufValue for Restriction
[src]
impl ProtobufValue for Restriction
[src]fn as_ref(&self) -> ReflectValueRef<'_>
[src]
pub fn as_any(&self) -> &(dyn Any + 'static)
[src]
pub fn is_non_zero(&self) -> bool
[src]
pub fn as_ref_copy(&self) -> ReflectValueRef<'static>
[src]
impl StructuralPartialEq for Restriction
[src]
impl StructuralPartialEq for Restriction
[src]Auto Trait Implementations
impl RefUnwindSafe for Restriction
impl RefUnwindSafe for Restriction
impl Send for Restriction
impl Send for Restriction
impl Sync for Restriction
impl Sync for Restriction
impl Unpin for Restriction
impl Unpin for Restriction
impl UnwindSafe for Restriction
impl UnwindSafe for Restriction