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