Struct twitch_api::helix::tags::TagLanguage
source · [−]#[repr(transparent)]pub struct TagLanguage(_);
Available on crate feature
helix
only.Expand description
Language code, formatted as 2 letter language by ISO 639-1, a dash (-
) and 2 letter region by ISO 3166-1
i.e
en-us
bg-bg
etc etc
Implementations
sourceimpl TagLanguage
impl TagLanguage
sourcepub fn from_static(raw: &'static str) -> Self
pub fn from_static(raw: &'static str) -> Self
Constructs a new TagLanguage from a static reference
sourcepub fn into_boxed_ref(self) -> Box<TagLanguageRef>
pub fn into_boxed_ref(self) -> Box<TagLanguageRef>
Converts this TagLanguage
into a Box<TagLanguageRef>
This will drop any excess capacity.
Methods from Deref<Target = TagLanguageRef>
Trait Implementations
sourceimpl AsRef<TagLanguageRef> for TagLanguage
impl AsRef<TagLanguageRef> for TagLanguage
sourcefn as_ref(&self) -> &TagLanguageRef
fn as_ref(&self) -> &TagLanguageRef
Converts this type into a shared reference of the (usually inferred) input type.
sourceimpl AsRef<str> for TagLanguage
impl AsRef<str> for TagLanguage
sourceimpl Borrow<TagLanguageRef> for TagLanguage
impl Borrow<TagLanguageRef> for TagLanguage
sourcefn borrow(&self) -> &TagLanguageRef
fn borrow(&self) -> &TagLanguageRef
Immutably borrows from an owned value. Read more
sourceimpl Borrow<str> for TagLanguage
impl Borrow<str> for TagLanguage
sourceimpl Clone for TagLanguage
impl Clone for TagLanguage
sourcefn clone(&self) -> TagLanguage
fn clone(&self) -> TagLanguage
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for TagLanguage
impl Debug for TagLanguage
sourceimpl Deref for TagLanguage
impl Deref for TagLanguage
type Target = TagLanguageRef
type Target = TagLanguageRef
The resulting type after dereferencing.
sourceimpl<'de> Deserialize<'de> for TagLanguage
impl<'de> Deserialize<'de> for TagLanguage
sourcefn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
Deserialize this value from the given Serde deserializer. Read more
sourceimpl Display for TagLanguage
impl Display for TagLanguage
sourceimpl From<&TagLanguageRef> for TagLanguage
impl From<&TagLanguageRef> for TagLanguage
sourcefn from(s: &TagLanguageRef) -> Self
fn from(s: &TagLanguageRef) -> Self
Converts to this type from the input type.
sourceimpl From<&str> for TagLanguage
impl From<&str> for TagLanguage
sourceimpl From<Box<TagLanguageRef, Global>> for TagLanguage
impl From<Box<TagLanguageRef, Global>> for TagLanguage
sourcefn from(r: Box<TagLanguageRef>) -> Self
fn from(r: Box<TagLanguageRef>) -> Self
Converts to this type from the input type.
sourceimpl<'a> From<Cow<'a, TagLanguageRef>> for TagLanguage
impl<'a> From<Cow<'a, TagLanguageRef>> for TagLanguage
sourcefn from(r: Cow<'a, TagLanguageRef>) -> Self
fn from(r: Cow<'a, TagLanguageRef>) -> Self
Converts to this type from the input type.
sourceimpl From<String> for TagLanguage
impl From<String> for TagLanguage
sourceimpl From<TagLanguage> for Box<TagLanguageRef>
impl From<TagLanguage> for Box<TagLanguageRef>
sourcefn from(r: TagLanguage) -> Self
fn from(r: TagLanguage) -> Self
Converts to this type from the input type.
sourceimpl<'a> From<TagLanguage> for Cow<'a, TagLanguageRef>
impl<'a> From<TagLanguage> for Cow<'a, TagLanguageRef>
sourcefn from(owned: TagLanguage) -> Self
fn from(owned: TagLanguage) -> Self
Converts to this type from the input type.
sourceimpl FromStr for TagLanguage
impl FromStr for TagLanguage
sourceimpl Hash for TagLanguage
impl Hash for TagLanguage
sourceimpl Ord for TagLanguage
impl Ord for TagLanguage
1.21.0 · sourcefn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 · sourcefn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
1.50.0 · sourcefn clamp(self, min: Self, max: Self) -> Selfwhere
Self: Sized + PartialOrd<Self>,
fn clamp(self, min: Self, max: Self) -> Selfwhere
Self: Sized + PartialOrd<Self>,
Restrict a value to a certain interval. Read more
sourceimpl PartialEq<&TagLanguageRef> for TagLanguage
impl PartialEq<&TagLanguageRef> for TagLanguage
sourcefn eq(&self, other: &&TagLanguageRef) -> bool
fn eq(&self, other: &&TagLanguageRef) -> bool
sourceimpl PartialEq<TagLanguage> for &TagLanguageRef
impl PartialEq<TagLanguage> for &TagLanguageRef
sourcefn eq(&self, other: &TagLanguage) -> bool
fn eq(&self, other: &TagLanguage) -> bool
sourceimpl PartialEq<TagLanguage> for TagLanguage
impl PartialEq<TagLanguage> for TagLanguage
sourcefn eq(&self, other: &TagLanguage) -> bool
fn eq(&self, other: &TagLanguage) -> bool
sourceimpl PartialEq<TagLanguage> for TagLanguageRef
impl PartialEq<TagLanguage> for TagLanguageRef
sourcefn eq(&self, other: &TagLanguage) -> bool
fn eq(&self, other: &TagLanguage) -> bool
sourceimpl PartialEq<TagLanguageRef> for TagLanguage
impl PartialEq<TagLanguageRef> for TagLanguage
sourcefn eq(&self, other: &TagLanguageRef) -> bool
fn eq(&self, other: &TagLanguageRef) -> bool
sourceimpl PartialOrd<TagLanguage> for TagLanguage
impl PartialOrd<TagLanguage> for TagLanguage
sourcefn partial_cmp(&self, other: &Self) -> Option<Ordering>
fn partial_cmp(&self, other: &Self) -> Option<Ordering>
1.0.0 · sourcefn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moresourceimpl Serialize for TagLanguage
impl Serialize for TagLanguage
impl Eq for TagLanguage
impl StructuralEq for TagLanguage
impl StructuralPartialEq for TagLanguage
Auto Trait Implementations
impl RefUnwindSafe for TagLanguage
impl Send for TagLanguage
impl Sync for TagLanguage
impl Unpin for TagLanguage
impl UnwindSafe for TagLanguage
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
sourcefn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.