pub struct ListResult {
pub common_prefixes: Vec<Path>,
pub objects: Vec<ObjectMeta>,
pub extensions: Extensions,
}Expand description
Result of a list call that includes objects, prefixes (directories) and a token for the next set of results. Individual result sets may be limited to 1,000 objects based on the underlying object storage’s limitations.
Fields§
§common_prefixes: Vec<Path>Prefixes that are common (like directories)
objects: Vec<ObjectMeta>Object metadata for the listing
extensions: ExtensionsImplementation-specific extensions. Intended for use by ObjectStore implementations
that need to return context-specific information (like cache status) from trait methods.
HTTP-backed stores in this crate populate this with the extensions of the HTTP response, allowing custom HTTP middleware to propagate information to callers. Where a result is assembled from multiple paginated requests, the extensions of each response are merged, with those of later responses taking precedence.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ListResult
impl !RefUnwindSafe for ListResult
impl Send for ListResult
impl Sync for ListResult
impl Unpin for ListResult
impl UnsafeUnpin for ListResult
impl !UnwindSafe for ListResult
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
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>
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