pub struct ObjectPrefix(/* private fields */);Expand description
A prefix of the validated object layout, used for provider listing.
Implementations§
Source§impl ObjectPrefix
impl ObjectPrefix
Sourcepub fn all(store: StoreId) -> ObjectPrefix
pub fn all(store: StoreId) -> ObjectPrefix
All objects belonging to this store.
Sourcepub fn slots(store: StoreId) -> ObjectPrefix
pub fn slots(store: StoreId) -> ObjectPrefix
Every slot of the store’s sequence (§5).
Sourcepub fn snapshots(store: StoreId) -> ObjectPrefix
pub fn snapshots(store: StoreId) -> ObjectPrefix
Every snapshot, of every audience and device (§16).
Sourcepub fn files(store: StoreId) -> ObjectPrefix
pub fn files(store: StoreId) -> ObjectPrefix
Every stored file.
Sourcepub fn device_files(store: StoreId, device: DeviceId) -> ObjectPrefix
pub fn device_files(store: StoreId, device: DeviceId) -> ObjectPrefix
The files one device uploaded (§17.5).
Sourcepub fn device_snapshots(
store: StoreId,
audience: Audience,
device: DeviceId,
) -> ObjectPrefix
pub fn device_snapshots( store: StoreId, audience: Audience, device: DeviceId, ) -> ObjectPrefix
The snapshots one device stored of one audience (§16.6).
Sourcepub fn join_requests(store: StoreId) -> ObjectPrefix
pub fn join_requests(store: StoreId) -> ObjectPrefix
Every waiting join request.
Sourcepub fn device_join_requests(store: StoreId, device: DeviceId) -> ObjectPrefix
pub fn device_join_requests(store: StoreId, device: DeviceId) -> ObjectPrefix
The join requests to one device’s invites, the markers of its ended invites, and its gone marker once it is gone for good (§13.2).
Sourcepub fn folder(&self) -> &str
pub fn folder(&self) -> &str
The folder this prefix names, without its closing slash, as a provider with folders names it.
Sourcepub fn contains(&self, path: &ObjectPath) -> bool
pub fn contains(&self, path: &ObjectPath) -> bool
Whether a validated path is under this prefix.
Trait Implementations§
Source§impl Clone for ObjectPrefix
impl Clone for ObjectPrefix
Source§fn clone(&self) -> ObjectPrefix
fn clone(&self) -> ObjectPrefix
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ObjectPrefix
impl Debug for ObjectPrefix
Source§impl Ord for ObjectPrefix
impl Ord for ObjectPrefix
Source§fn cmp(&self, other: &ObjectPrefix) -> Ordering
fn cmp(&self, other: &ObjectPrefix) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for ObjectPrefix
impl PartialEq for ObjectPrefix
Source§impl PartialOrd for ObjectPrefix
impl PartialOrd for ObjectPrefix
impl Eq for ObjectPrefix
impl StructuralPartialEq for ObjectPrefix
Auto Trait Implementations§
impl Freeze for ObjectPrefix
impl RefUnwindSafe for ObjectPrefix
impl Send for ObjectPrefix
impl Sync for ObjectPrefix
impl Unpin for ObjectPrefix
impl UnsafeUnpin for ObjectPrefix
impl UnwindSafe for ObjectPrefix
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,
§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
§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
Checks if this value is equivalent to the given key. Read more
§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
Compare self to
key and return true if they are equal.§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>
Converts
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>
Converts
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 moreCreates a shared type from an unshared type.