pub struct ListBuilder<'a> { /* private fields */ }Expand description
Unified builder for homeserver LIST queries (works for session & public).
Configure optional flags like reverse, shallow, limit, and cursor,
then call send to perform the request.
Returned entries are PubkyResource values.
Built via:
SessionStorage::listfor authenticated “as me” listings.PublicStorage::listfor unauthenticated public listings.
Implementations§
Source§impl<'a> ListBuilder<'a>
impl<'a> ListBuilder<'a>
Sourcepub const fn limit(self, limit: u16) -> Self
pub const fn limit(self, limit: u16) -> Self
Maximum number of entries to return (homeserver may cap).
Sourcepub async fn send(self) -> Result<Vec<PubkyResource>>
pub async fn send(self) -> Result<Vec<PubkyResource>>
Execute the LIST request and return addressed entries.
§Errors
- Propagates transport failures while issuing the HTTP request.
- Returns
crate::errors::RequestError::Validationif any resource line returned by the server is invalid.
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for ListBuilder<'a>
impl<'a> !RefUnwindSafe for ListBuilder<'a>
impl<'a> Send for ListBuilder<'a>
impl<'a> Sync for ListBuilder<'a>
impl<'a> Unpin for ListBuilder<'a>
impl<'a> UnsafeUnpin for ListBuilder<'a>
impl<'a> !UnwindSafe for ListBuilder<'a>
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