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 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§impl PartialEq<BlockedTermId> for &BlockedTermIdRef
impl PartialEq<BlockedTermId> for &BlockedTermIdRef
Source§impl PartialEq<BlockedTermId> for BlockedTermIdRef
impl PartialEq<BlockedTermId> for BlockedTermIdRef
Source§impl PartialEq<BlockedTermIdRef> for BlockedTermId
impl PartialEq<BlockedTermIdRef> for BlockedTermId
Source§impl PartialEq for BlockedTermIdRef
impl PartialEq for BlockedTermIdRef
Source§impl PartialOrd for BlockedTermIdRef
impl PartialOrd for BlockedTermIdRef
Source§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
Source§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