pub struct Entry { /* private fields */ }
Expand description
Entry returned by Lister
or [BlockingLister
] to represent a path and it’s relative metadata.
Implementations§
Source§impl Entry
impl Entry
Sourcepub fn path(&self) -> &str
pub fn path(&self) -> &str
Path of entry. Path is relative to operator’s root.
Only valid in current operator.
If this entry is a dir, path
MUST end with /
Otherwise, path
MUST NOT end with /
.
Sourcepub fn name(&self) -> &str
pub fn name(&self) -> &str
Name of entry. Name is the last segment of path.
If this entry is a dir, name
MUST end with /
Otherwise, name
MUST NOT end with /
.
Sourcepub fn into_parts(self) -> (String, Metadata)
pub fn into_parts(self) -> (String, Metadata)
Consume this entry to get its path and metadata.
Trait Implementations§
Source§impl IntoDeleteInput for Entry
Implement IntoDeleteInput
for Entry
so we can use Lister
as a DeleteInput stream.
impl IntoDeleteInput for Entry
Implement IntoDeleteInput
for Entry
so we can use Lister
as a DeleteInput stream.
Source§fn into_delete_input(self) -> DeleteInput
fn into_delete_input(self) -> DeleteInput
Convert
self
into a DeleteInput
.Auto Trait Implementations§
impl Freeze for Entry
impl RefUnwindSafe for Entry
impl Send for Entry
impl Sync for Entry
impl Unpin for Entry
impl UnwindSafe for Entry
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
Source§impl<T> ServiceExt for T
impl<T> ServiceExt for T
Source§fn map_response_body<F>(self, f: F) -> MapResponseBody<Self, F>where
Self: Sized,
fn map_response_body<F>(self, f: F) -> MapResponseBody<Self, F>where
Self: Sized,
Apply a transformation to the response body. Read more
Source§fn decompression(self) -> Decompression<Self>where
Self: Sized,
fn decompression(self) -> Decompression<Self>where
Self: Sized,
Decompress response bodies. Read more
Source§fn trace_for_http(self) -> Trace<Self, SharedClassifier<ServerErrorsAsFailures>>where
Self: Sized,
fn trace_for_http(self) -> Trace<Self, SharedClassifier<ServerErrorsAsFailures>>where
Self: Sized,
High level tracing that classifies responses using HTTP status codes. Read more
Source§fn trace_for_grpc(self) -> Trace<Self, SharedClassifier<GrpcErrorsAsFailures>>where
Self: Sized,
fn trace_for_grpc(self) -> Trace<Self, SharedClassifier<GrpcErrorsAsFailures>>where
Self: Sized,
High level tracing that classifies responses using gRPC headers. Read more