pub struct BlockedTermId(/* private fields */);
Available on crate feature
moderation
only.Expand description
A blocked term ID
Implementations§
Source§impl BlockedTermId
impl BlockedTermId
Sourcepub fn from_static(raw: &'static str) -> Self
pub fn from_static(raw: &'static str) -> Self
Constructs a newBlockedTermIdfrom a static reference
Sourcepub fn into_boxed_ref(self) -> Box<BlockedTermIdRef>
pub fn into_boxed_ref(self) -> Box<BlockedTermIdRef>
Converts this BlockedTermId
into a Box<BlockedTermIdRef>
This will drop any excess capacity.
Methods from Deref<Target = 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 BlockedTermId
impl AsRef<str> for BlockedTermId
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 BlockedTermId
impl Borrow<str> for BlockedTermId
Source§impl Clone for BlockedTermId
impl Clone for BlockedTermId
Source§fn clone(&self) -> BlockedTermId
fn clone(&self) -> BlockedTermId
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for BlockedTermId
impl Debug for BlockedTermId
Source§impl Deref for BlockedTermId
impl Deref for BlockedTermId
Source§impl<'de> Deserialize<'de> for BlockedTermId
Available on crate feature serde
only.
impl<'de> Deserialize<'de> for BlockedTermId
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 BlockedTermId
impl Display for BlockedTermId
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<'a> From<&'a BlockedTermId> for Collection<'a, BlockedTermId>
impl<'a> From<&'a BlockedTermId> for Collection<'a, BlockedTermId>
Source§fn from(v: &'a BlockedTermId) -> Self
fn from(v: &'a BlockedTermId) -> Self
Converts to this type from the input type.
Source§impl<'a> From<&'a BlockedTermId> for Cow<'a, BlockedTermIdRef>
impl<'a> From<&'a BlockedTermId> for Cow<'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 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 From<&str> for BlockedTermId
impl From<&str> for BlockedTermId
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<'a> From<BlockedTermId> for Cow<'a, BlockedTermIdRef>
impl<'a> From<BlockedTermId> for Cow<'a, BlockedTermIdRef>
Source§fn from(owned: BlockedTermId) -> Self
fn from(owned: BlockedTermId) -> Self
Converts to this type from the input type.
Source§impl From<BlockedTermId> for String
impl From<BlockedTermId> for String
Source§fn from(s: BlockedTermId) -> Self
fn from(s: BlockedTermId) -> Self
Converts to this type from the input type.
Source§impl From<Box<BlockedTermIdRef>> for BlockedTermId
impl From<Box<BlockedTermIdRef>> for BlockedTermId
Source§fn from(r: Box<BlockedTermIdRef>) -> Self
fn from(r: Box<BlockedTermIdRef>) -> Self
Converts to this type from the input type.
Source§impl<'a> From<Cow<'a, BlockedTermIdRef>> for BlockedTermId
impl<'a> From<Cow<'a, BlockedTermIdRef>> for BlockedTermId
Source§fn from(r: Cow<'a, BlockedTermIdRef>) -> Self
fn from(r: Cow<'a, BlockedTermIdRef>) -> Self
Converts to this type from the input type.
Source§impl From<String> for BlockedTermId
impl From<String> for BlockedTermId
Source§impl FromStr for BlockedTermId
impl FromStr for BlockedTermId
Source§impl Hash for BlockedTermId
impl Hash for BlockedTermId
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 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 BlockedTermId
impl Ord for BlockedTermId
Source§impl PartialEq<&BlockedTermId> for BlockedTermId
impl PartialEq<&BlockedTermId> for BlockedTermId
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 BlockedTermId
impl PartialEq for BlockedTermId
Source§impl PartialOrd for BlockedTermId
impl PartialOrd for BlockedTermId
Source§impl Serialize for BlockedTermId
Available on crate feature serde
only.
impl Serialize for BlockedTermId
Available on crate feature
serde
only.impl Eq for BlockedTermId
impl StructuralPartialEq for BlockedTermId
Auto Trait Implementations§
impl Freeze for BlockedTermId
impl RefUnwindSafe for BlockedTermId
impl Send for BlockedTermId
impl Sync for BlockedTermId
impl Unpin for BlockedTermId
impl UnwindSafe for BlockedTermId
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)