Struct twitch_api::helix::tags::TagLanguageRef
source · [−]#[repr(transparent)]pub struct TagLanguageRef(_);
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 TagLanguageRef
impl TagLanguageRef
sourcepub const fn from_str(raw: &str) -> &Self
pub const fn from_str(raw: &str) -> &Self
Transparently reinterprets the string slice as a strongly-typed TagLanguageRef
sourcepub const fn from_static(raw: &'static str) -> &'static Self
pub const fn from_static(raw: &'static str) -> &'static Self
Transparently reinterprets the static string slice as a strongly-typed TagLanguageRef
sourcepub fn into_owned(self: Box<TagLanguageRef>) -> TagLanguage
pub fn into_owned(self: Box<TagLanguageRef>) -> TagLanguage
Converts a Box<TagLanguageRef>
into a TagLanguage
without copying or allocating
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 TagLanguageRef
impl AsRef<str> for TagLanguageRef
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 TagLanguageRef
impl Borrow<str> for TagLanguageRef
sourceimpl Debug for TagLanguageRef
impl Debug for TagLanguageRef
sourceimpl<'de: 'a, 'a> Deserialize<'de> for &'a TagLanguageRef
impl<'de: 'a, 'a> Deserialize<'de> for &'a TagLanguageRef
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<'de> Deserialize<'de> for Box<TagLanguageRef>
impl<'de> Deserialize<'de> for Box<TagLanguageRef>
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 TagLanguageRef
impl Display for TagLanguageRef
sourceimpl<'a, 'b: 'a> From<&'a Cow<'b, TagLanguageRef>> for &'a TagLanguageRef
impl<'a, 'b: 'a> From<&'a Cow<'b, TagLanguageRef>> for &'a TagLanguageRef
sourcefn from(r: &'a Cow<'b, TagLanguageRef>) -> &'a TagLanguageRef
fn from(r: &'a Cow<'b, TagLanguageRef>) -> &'a TagLanguageRef
Converts to this type from the input type.
sourceimpl<'a> From<&'a TagLanguageRef> for Cow<'a, TagLanguageRef>
impl<'a> From<&'a TagLanguageRef> for Cow<'a, TagLanguageRef>
sourcefn from(r: &'a TagLanguageRef) -> Self
fn from(r: &'a TagLanguageRef) -> Self
Converts to this type from the input type.
sourceimpl<'a> From<&'a str> for &'a TagLanguageRef
impl<'a> From<&'a str> for &'a TagLanguageRef
sourcefn from(s: &'a str) -> &'a TagLanguageRef
fn from(s: &'a str) -> &'a TagLanguageRef
Converts to this type from the input type.
sourceimpl From<&TagLanguageRef> for Arc<TagLanguageRef>
impl From<&TagLanguageRef> for Arc<TagLanguageRef>
sourcefn from(r: &TagLanguageRef) -> Self
fn from(r: &TagLanguageRef) -> Self
Converts to this type from the input type.
sourceimpl From<&TagLanguageRef> for Rc<TagLanguageRef>
impl From<&TagLanguageRef> for Rc<TagLanguageRef>
sourcefn from(r: &TagLanguageRef) -> Self
fn from(r: &TagLanguageRef) -> Self
Converts to this type from the input type.
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<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 Hash for TagLanguageRef
impl Hash for TagLanguageRef
sourceimpl Ord for TagLanguageRef
impl Ord for TagLanguageRef
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 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 PartialEq<TagLanguageRef> for TagLanguageRef
impl PartialEq<TagLanguageRef> for TagLanguageRef
sourcefn eq(&self, other: &TagLanguageRef) -> bool
fn eq(&self, other: &TagLanguageRef) -> bool
sourceimpl PartialOrd<TagLanguageRef> for TagLanguageRef
impl PartialOrd<TagLanguageRef> for TagLanguageRef
sourcefn partial_cmp(&self, other: &TagLanguageRef) -> Option<Ordering>
fn partial_cmp(&self, other: &TagLanguageRef) -> 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 TagLanguageRef
impl Serialize for TagLanguageRef
sourceimpl ToOwned for TagLanguageRef
impl ToOwned for TagLanguageRef
type Owned = TagLanguage
type Owned = TagLanguage
The resulting type after obtaining ownership.
sourcefn to_owned(&self) -> Self::Owned
fn to_owned(&self) -> Self::Owned
Creates owned data from borrowed data, usually by cloning. Read more
1.63.0 · sourcefn clone_into(&self, target: &mut Self::Owned)
fn clone_into(&self, target: &mut Self::Owned)
Uses borrowed data to replace owned data, usually by cloning. Read more
impl Eq for TagLanguageRef
impl StructuralEq for TagLanguageRef
impl StructuralPartialEq for TagLanguageRef
Auto Trait Implementations
impl RefUnwindSafe for TagLanguageRef
impl Send for TagLanguageRef
impl !Sized for TagLanguageRef
impl Sync for TagLanguageRef
impl Unpin for TagLanguageRef
impl UnwindSafe for TagLanguageRef
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.