pub struct ListBuilder<'a> { /* private fields */ }Expand description
Helper struct to edit Pubky homeserver’s list API options before sending them.
Implementations§
Source§impl<'a> ListBuilder<'a>
impl<'a> ListBuilder<'a>
Sourcepub fn cursor(self, cursor: &'a str) -> Self
pub fn cursor(self, cursor: &'a str) -> Self
Set the cursor value.
Either a full pubky:// Url (from previous list response),
or a path (to a file or directory) relative to the url
pub fn shallow(self, shallow: bool) -> Self
Sourcepub async fn send(self) -> Result<Vec<String>>
pub async fn send(self) -> Result<Vec<String>>
Send the list request.
Returns a list of Pubky URLs of the files in the path of the url
respecting ListBuilder::reverse, ListBuilder::limit and ListBuilder::cursor
options.
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> !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