pub struct Edge<N> {
pub cursor: Value,
pub node: N,
}Expand description
A paginated item with its cursor.
Each edge contains a node (the actual data) and its cursor for use in subsequent pagination requests.
Fields§
§cursor: ValueCursor for this item’s position
node: NThe actual data item
Trait Implementations§
Source§impl<'de, N> Deserialize<'de> for Edge<N>where
N: Deserialize<'de>,
impl<'de, N> Deserialize<'de> for Edge<N>where
N: Deserialize<'de>,
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl<N> StructuralPartialEq for Edge<N>
Auto Trait Implementations§
impl<N> Freeze for Edge<N>where
N: Freeze,
impl<N> RefUnwindSafe for Edge<N>where
N: RefUnwindSafe,
impl<N> Send for Edge<N>where
N: Send,
impl<N> Sync for Edge<N>where
N: Sync,
impl<N> Unpin for Edge<N>where
N: Unpin,
impl<N> UnwindSafe for Edge<N>where
N: UnwindSafe,
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