pub struct PaginatedResult<T, C> {
pub cursor: Option<C>,
pub results: Vec<T>,
pub has_next_page: bool,
pub has_previous_page: bool,
}
Fields§
§cursor: Option<C>
§results: Vec<T>
§has_next_page: bool
§has_previous_page: bool
Trait Implementations§
Source§impl From<BalanceConnection> for PaginatedResult<Balance, String>
impl From<BalanceConnection> for PaginatedResult<Balance, String>
Source§fn from(conn: BalanceConnection) -> Self
fn from(conn: BalanceConnection) -> Self
Converts to this type from the input type.
Source§impl From<BlockConnection> for PaginatedResult<Block, String>
impl From<BlockConnection> for PaginatedResult<Block, String>
Source§fn from(conn: BlockConnection) -> Self
fn from(conn: BlockConnection) -> Self
Converts to this type from the input type.
Source§impl From<CoinConnection> for PaginatedResult<Coin, String>
impl From<CoinConnection> for PaginatedResult<Coin, String>
Source§fn from(conn: CoinConnection) -> Self
fn from(conn: CoinConnection) -> Self
Converts to this type from the input type.
Source§impl From<ContractBalanceConnection> for PaginatedResult<ContractBalance, String>
impl From<ContractBalanceConnection> for PaginatedResult<ContractBalance, String>
Source§fn from(conn: ContractBalanceConnection) -> Self
fn from(conn: ContractBalanceConnection) -> Self
Converts to this type from the input type.
Source§impl From<MessageConnection> for PaginatedResult<Message, String>
impl From<MessageConnection> for PaginatedResult<Message, String>
Source§fn from(conn: MessageConnection) -> Self
fn from(conn: MessageConnection) -> Self
Converts to this type from the input type.
Source§impl TryFrom<TransactionConnection> for PaginatedResult<TransactionResponse, String>
impl TryFrom<TransactionConnection> for PaginatedResult<TransactionResponse, String>
Source§type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
Auto Trait Implementations§
impl<T, C> Freeze for PaginatedResult<T, C>where
C: Freeze,
impl<T, C> RefUnwindSafe for PaginatedResult<T, C>where
C: RefUnwindSafe,
T: RefUnwindSafe,
impl<T, C> Send for PaginatedResult<T, C>
impl<T, C> Sync for PaginatedResult<T, C>
impl<T, C> Unpin for PaginatedResult<T, C>
impl<T, C> UnwindSafe for PaginatedResult<T, C>where
C: UnwindSafe,
T: 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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more