Struct twitch_types::moderation::BlockedTermIdRef
source · pub struct BlockedTermIdRef(/* private fields */);
Available on crate feature
moderation
only.Expand description
A blocked term ID
Implementations§
source§impl BlockedTermIdRef
impl BlockedTermIdRef
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 BlockedTermIdRef
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 BlockedTermIdRef
sourcepub fn into_owned(self: Box<BlockedTermIdRef>) -> BlockedTermId
pub fn into_owned(self: Box<BlockedTermIdRef>) -> BlockedTermId
Converts a Box<BlockedTermIdRef>
into a BlockedTermId
without copying or allocating
source§impl BlockedTermIdRef
impl BlockedTermIdRef
sourcepub fn as_cow(&self) -> Cow<'_, BlockedTermIdRef>
pub fn as_cow(&self) -> Cow<'_, BlockedTermIdRef>
Trait Implementations§
source§impl<'a> Arbitrary<'a> for &'a BlockedTermIdRef
Available on crate feature arbitrary
only.
impl<'a> Arbitrary<'a> for &'a BlockedTermIdRef
Available on crate feature
arbitrary
only.source§fn arbitrary(u: &mut Unstructured<'a>) -> Result<Self, Error>
fn arbitrary(u: &mut Unstructured<'a>) -> Result<Self, Error>
Generate an arbitrary value of
Self
from the given unstructured data. Read moresource§fn arbitrary_take_rest(u: Unstructured<'a>) -> Result<Self, Error>
fn arbitrary_take_rest(u: Unstructured<'a>) -> Result<Self, Error>
Generate an arbitrary value of
Self
from the entirety of the given
unstructured data. Read moresource§impl AsRef<BlockedTermIdRef> for BlockedTermId
impl AsRef<BlockedTermIdRef> for BlockedTermId
source§fn as_ref(&self) -> &BlockedTermIdRef
fn as_ref(&self) -> &BlockedTermIdRef
Converts this type into a shared reference of the (usually inferred) input type.
source§impl AsRef<str> for BlockedTermIdRef
impl AsRef<str> for BlockedTermIdRef
source§impl Borrow<BlockedTermIdRef> for BlockedTermId
impl Borrow<BlockedTermIdRef> for BlockedTermId
source§fn borrow(&self) -> &BlockedTermIdRef
fn borrow(&self) -> &BlockedTermIdRef
Immutably borrows from an owned value. Read more
source§impl Borrow<str> for BlockedTermIdRef
impl Borrow<str> for BlockedTermIdRef
source§impl Debug for BlockedTermIdRef
impl Debug for BlockedTermIdRef
source§impl<'de: 'a, 'a> Deserialize<'de> for &'a BlockedTermIdRef
Available on crate feature serde
only.
impl<'de: 'a, 'a> Deserialize<'de> for &'a BlockedTermIdRef
Available on crate feature
serde
only.source§fn 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
source§impl<'de> Deserialize<'de> for Box<BlockedTermIdRef>
Available on crate feature serde
only.
impl<'de> Deserialize<'de> for Box<BlockedTermIdRef>
Available on crate feature
serde
only.source§fn 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
source§impl Display for BlockedTermIdRef
impl Display for BlockedTermIdRef
source§impl<'a> From<&'a &'a BlockedTermIdRef> for Collection<'a, BlockedTermId>
impl<'a> From<&'a &'a BlockedTermIdRef> for Collection<'a, BlockedTermId>
source§fn from(v: &'a &'a BlockedTermIdRef) -> Self
fn from(v: &'a &'a BlockedTermIdRef) -> Self
Converts to this type from the input type.
source§impl<'a> From<&'a BlockedTermId> for &'a BlockedTermIdRef
impl<'a> From<&'a BlockedTermId> for &'a BlockedTermIdRef
source§fn from(owned: &'a BlockedTermId) -> Self
fn from(owned: &'a BlockedTermId) -> Self
Converts to this type from the input type.
source§impl From<&BlockedTermIdRef> for Arc<BlockedTermIdRef>
impl From<&BlockedTermIdRef> for Arc<BlockedTermIdRef>
source§fn from(r: &BlockedTermIdRef) -> Self
fn from(r: &BlockedTermIdRef) -> Self
Converts to this type from the input type.
source§impl From<&BlockedTermIdRef> for BlockedTermId
impl From<&BlockedTermIdRef> for BlockedTermId
source§fn from(s: &BlockedTermIdRef) -> Self
fn from(s: &BlockedTermIdRef) -> Self
Converts to this type from the input type.
source§impl<'a> From<&'a BlockedTermIdRef> for Cow<'a, BlockedTermIdRef>
impl<'a> From<&'a BlockedTermIdRef> for Cow<'a, BlockedTermIdRef>
source§fn from(r: &'a BlockedTermIdRef) -> Self
fn from(r: &'a BlockedTermIdRef) -> Self
Converts to this type from the input type.
source§impl From<&BlockedTermIdRef> for Rc<BlockedTermIdRef>
impl From<&BlockedTermIdRef> for Rc<BlockedTermIdRef>
source§fn from(r: &BlockedTermIdRef) -> Self
fn from(r: &BlockedTermIdRef) -> Self
Converts to this type from the input type.
source§impl<'a, 'b: 'a> From<&'a Cow<'b, BlockedTermIdRef>> for &'a BlockedTermIdRef
impl<'a, 'b: 'a> From<&'a Cow<'b, BlockedTermIdRef>> for &'a BlockedTermIdRef
source§fn from(r: &'a Cow<'b, BlockedTermIdRef>) -> &'a BlockedTermIdRef
fn from(r: &'a Cow<'b, BlockedTermIdRef>) -> &'a BlockedTermIdRef
Converts to this type from the input type.
source§impl<'a> From<&'a String> for &'a BlockedTermIdRef
impl<'a> From<&'a String> for &'a BlockedTermIdRef
source§impl<'a> From<&'a str> for &'a BlockedTermIdRef
impl<'a> From<&'a str> for &'a BlockedTermIdRef
source§fn from(s: &'a str) -> &'a BlockedTermIdRef
fn from(s: &'a str) -> &'a BlockedTermIdRef
Converts to this type from the input type.
source§impl From<BlockedTermId> for Box<BlockedTermIdRef>
impl From<BlockedTermId> for Box<BlockedTermIdRef>
source§fn from(r: BlockedTermId) -> Self
fn from(r: BlockedTermId) -> Self
Converts to this type from the input type.
source§impl Hash for BlockedTermIdRef
impl Hash for BlockedTermIdRef
source§impl<'a> IntoCow<'a, BlockedTermIdRef> for &'a BlockedTermId
impl<'a> IntoCow<'a, BlockedTermIdRef> for &'a BlockedTermId
source§fn into_cow(self) -> Cow<'a, BlockedTermIdRef>
fn into_cow(self) -> Cow<'a, BlockedTermIdRef>
Make the cow with proper ownership, muu
source§impl<'a> IntoCow<'a, BlockedTermIdRef> for &'a BlockedTermIdRef
impl<'a> IntoCow<'a, BlockedTermIdRef> for &'a BlockedTermIdRef
source§fn into_cow(self) -> Cow<'a, BlockedTermIdRef>
fn into_cow(self) -> Cow<'a, BlockedTermIdRef>
Make the cow with proper ownership, muu
source§impl<'a> IntoCow<'a, BlockedTermIdRef> for BlockedTermId
impl<'a> IntoCow<'a, BlockedTermIdRef> for BlockedTermId
source§fn into_cow(self) -> Cow<'a, BlockedTermIdRef>
fn into_cow(self) -> Cow<'a, BlockedTermIdRef>
Make the cow with proper ownership, muu
source§impl Ord for BlockedTermIdRef
impl Ord for BlockedTermIdRef
source§impl PartialEq<&BlockedTermIdRef> for BlockedTermId
impl PartialEq<&BlockedTermIdRef> for BlockedTermId
source§fn eq(&self, other: &&BlockedTermIdRef) -> bool
fn eq(&self, other: &&BlockedTermIdRef) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialEq<BlockedTermId> for &BlockedTermIdRef
impl PartialEq<BlockedTermId> for &BlockedTermIdRef
source§fn eq(&self, other: &BlockedTermId) -> bool
fn eq(&self, other: &BlockedTermId) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialEq<BlockedTermId> for BlockedTermIdRef
impl PartialEq<BlockedTermId> for BlockedTermIdRef
source§fn eq(&self, other: &BlockedTermId) -> bool
fn eq(&self, other: &BlockedTermId) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialEq<BlockedTermIdRef> for BlockedTermId
impl PartialEq<BlockedTermIdRef> for BlockedTermId
source§fn eq(&self, other: &BlockedTermIdRef) -> bool
fn eq(&self, other: &BlockedTermIdRef) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialEq for BlockedTermIdRef
impl PartialEq for BlockedTermIdRef
source§fn eq(&self, other: &BlockedTermIdRef) -> bool
fn eq(&self, other: &BlockedTermIdRef) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for BlockedTermIdRef
impl PartialOrd for BlockedTermIdRef
source§fn partial_cmp(&self, other: &BlockedTermIdRef) -> Option<Ordering>
fn partial_cmp(&self, other: &BlockedTermIdRef) -> Option<Ordering>
1.0.0 · source§fn 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 moresource§impl Serialize for BlockedTermIdRef
Available on crate feature serde
only.
impl Serialize for BlockedTermIdRef
Available on crate feature
serde
only.source§impl ToOwned for BlockedTermIdRef
impl ToOwned for BlockedTermIdRef
§type Owned = BlockedTermId
type Owned = BlockedTermId
The resulting type after obtaining ownership.
source§fn 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 · source§fn 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
source§impl<'zf> ZeroFrom<'zf, BlockedTermId> for &'zf BlockedTermIdRef
Available on crate feature zerofrom
only.
impl<'zf> ZeroFrom<'zf, BlockedTermId> for &'zf BlockedTermIdRef
Available on crate feature
zerofrom
only.source§fn zero_from(other: &'zf BlockedTermId) -> Self
fn zero_from(other: &'zf BlockedTermId) -> Self
Clone the other
C
into a struct that may retain references into C
.source§impl<'zf> ZeroFrom<'zf, BlockedTermIdRef> for &'zf BlockedTermIdRef
Available on crate feature zerofrom
only.
impl<'zf> ZeroFrom<'zf, BlockedTermIdRef> for &'zf BlockedTermIdRef
Available on crate feature
zerofrom
only.source§fn zero_from(other: &'zf BlockedTermIdRef) -> Self
fn zero_from(other: &'zf BlockedTermIdRef) -> Self
Clone the other
C
into a struct that may retain references into C
.