pub struct ListRecordsQuery {
pub repo: String,
pub collection: String,
pub limit: Option<usize>,
pub cursor: Option<String>,
pub reverse: Option<bool>,
}Expand description
Query of com.atproto.repo.listRecords.
Fields§
§repo: StringThe repository to read, as a DID or a handle.
collection: StringThe collection NSID to list.
limit: Option<usize>How many records to return.
cursor: Option<String>The record key a previous page ended on, resumed after.
reverse: Option<bool>Read oldest first rather than newest first.
Implementations§
Source§impl ListRecordsQuery
impl ListRecordsQuery
Sourcepub fn effective_limit(&self) -> usize
pub fn effective_limit(&self) -> usize
The limit to apply, defaulting when the caller did not choose one.
A limit of zero is honoured rather than treated as unset: a caller
asking for no records is asking a question about existence, and
answering it with fifty records would be answering a different one.
The lexicon’s minimum is one, so a conformant client cannot ask it
anyway.
Sourcepub fn page(&self) -> ListParams
pub fn page(&self) -> ListParams
The page this query asks the store for.
The cursor is passed through as the record key it is. It is not decoded, checked or signed: it names a position in public data the same request would have reached anyway, and a cursor naming a key that is not there is not an error — it is where to carry on from, which is what makes a page survive the deletion of the row it resumed after.
Trait Implementations§
Source§impl Clone for ListRecordsQuery
impl Clone for ListRecordsQuery
Source§fn clone(&self) -> ListRecordsQuery
fn clone(&self) -> ListRecordsQuery
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for ListRecordsQuery
impl Debug for ListRecordsQuery
Source§impl<'de> Deserialize<'de> for ListRecordsQuery
impl<'de> Deserialize<'de> for ListRecordsQuery
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>,
Source§impl PartialEq for ListRecordsQuery
impl PartialEq for ListRecordsQuery
Source§fn eq(&self, other: &ListRecordsQuery) -> bool
fn eq(&self, other: &ListRecordsQuery) -> bool
self and other values to be equal, and is used by ==.Source§impl Serialize for ListRecordsQuery
impl Serialize for ListRecordsQuery
impl Eq for ListRecordsQuery
impl StructuralPartialEq for ListRecordsQuery
Auto Trait Implementations§
impl Freeze for ListRecordsQuery
impl RefUnwindSafe for ListRecordsQuery
impl Send for ListRecordsQuery
impl Sync for ListRecordsQuery
impl Unpin for ListRecordsQuery
impl UnsafeUnpin for ListRecordsQuery
impl UnwindSafe for ListRecordsQuery
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§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>
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>
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