Struct twitch_api::helix::CursorRef
source · [−]#[repr(transparent)]pub struct CursorRef(_);
Available on crate feature
helix
only.Expand description
A cursor is a pointer to the current “page” in the twitch api pagination
Implementations
sourceimpl CursorRef
impl CursorRef
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 CursorRef
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 CursorRef
sourcepub fn into_owned(self: Box<CursorRef>) -> Cursor
pub fn into_owned(self: Box<CursorRef>) -> Cursor
Converts a Box<CursorRef>
into a Cursor
without copying or allocating
Trait Implementations
sourceimpl<'de: 'a, 'a> Deserialize<'de> for &'a CursorRef
impl<'de: 'a, 'a> Deserialize<'de> for &'a CursorRef
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<CursorRef>
impl<'de> Deserialize<'de> for Box<CursorRef>
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 PartialOrd<CursorRef> for CursorRef
impl PartialOrd<CursorRef> for CursorRef
sourcefn partial_cmp(&self, other: &CursorRef) -> Option<Ordering>
fn partial_cmp(&self, other: &CursorRef) -> 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 ToOwned for CursorRef
impl ToOwned for CursorRef
impl Eq for CursorRef
impl StructuralEq for CursorRef
impl StructuralPartialEq for CursorRef
Auto Trait Implementations
impl RefUnwindSafe for CursorRef
impl Send for CursorRef
impl !Sized for CursorRef
impl Sync for CursorRef
impl Unpin for CursorRef
impl UnwindSafe for CursorRef
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.