pub struct StoragePlan {
pub logical_path: String,
pub storage_class: StorageClass,
pub policy: StoragePolicy,
pub durable_store: DurableStore,
pub object_key: Option<String>,
pub local_path: Option<String>,
pub matched_rule_prefix: Option<String>,
pub write_targets: Vec<WriteTarget>,
pub deployment_scope: StorageDeploymentScope,
}Fields§
§logical_path: String§storage_class: StorageClass§policy: StoragePolicy§durable_store: DurableStore§object_key: Option<String>§local_path: Option<String>§matched_rule_prefix: Option<String>§write_targets: Vec<WriteTarget>§deployment_scope: StorageDeploymentScopeImplementations§
Source§impl StoragePlan
impl StoragePlan
pub fn primary_write_target(&self) -> Option<&WriteTarget>
pub fn ensure_public_delivery_allowed(&self) -> Result<(), StoragePlanningError>
pub const fn public_delivery_eligible(&self) -> bool
pub const fn requires_single_node(&self) -> bool
Trait Implementations§
Source§impl Clone for StoragePlan
impl Clone for StoragePlan
Source§fn clone(&self) -> StoragePlan
fn clone(&self) -> StoragePlan
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 StoragePlan
impl Debug for StoragePlan
Source§impl PartialEq for StoragePlan
impl PartialEq for StoragePlan
impl Eq for StoragePlan
impl StructuralPartialEq for StoragePlan
Auto Trait Implementations§
impl Freeze for StoragePlan
impl RefUnwindSafe for StoragePlan
impl Send for StoragePlan
impl Sync for StoragePlan
impl Unpin for StoragePlan
impl UnsafeUnpin for StoragePlan
impl UnwindSafe for StoragePlan
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.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>
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 more