ListPage

Structin kv_storefastly 0.13.1View source
pub struct ListPage { /* private fields */ }

A page from a KV Store List operation.

Methods

into_keys

View source
fn into_keys(self) -> Vec<String>

Consumes the page, and returns a Vec<String> of its listed keys.

Parameters

self: Self

Returns

Vec<String>
fn keys(&self) -> &[String]

Returns a slice of the listed keys in the current page.

Parameters

self: &Self

Returns

&[String]
fn limit(&self) -> u32

Returns a u32 of the List operation's limit

Parameters

self: &Self

Returns

u32
fn mode(&self) -> ListMode

Returns the ListMode of the List operation

Parameters

self: &Self

Returns

next_cursor

View source
fn next_cursor(&self) -> Option<String>

Returns an Option<String> of the List operation's next_cursor

Parameters

self: &Self

Returns

Option<String>
fn prefix(&self) -> Option<&str>

Returns an Option<&str> of the List operation's prefix

Parameters

self: &Self

Returns

Option<&str>

Trait implementations

impl Clone for ListPage

fn clone(&self) -> Self

Parameters

self: &Self

Returns

Self

impl Debug for ListPage

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Parameters

self: &Self
f: &mut $crate::fmt::Formatter

Returns

$crate::fmt::Result

impl Deserialize for ListPage

deserialize

View source
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
where
__D: Deserializer<'de>,

Parameters

__deserializer: __D

Returns

_serde::__private228::Result<Self, __D::Error>

Auto trait implementations

Blanket implementations