Struct PythonEnvironmentPrunePolicy
pub struct PythonEnvironmentPrunePolicy {
pub stale_before_unix_seconds: u64,
pub remove_incomplete: bool,
pub remove_invalid: bool,
pub remove_staging: bool,
}Fields§
§stale_before_unix_seconds: u64§remove_incomplete: bool§remove_invalid: bool§remove_staging: boolImplementations§
§impl PythonEnvironmentPrunePolicy
impl PythonEnvironmentPrunePolicy
pub fn conservative( stale_before_unix_seconds: u64, ) -> PythonEnvironmentPrunePolicy
Trait Implementations§
§impl Clone for PythonEnvironmentPrunePolicy
impl Clone for PythonEnvironmentPrunePolicy
§fn clone(&self) -> PythonEnvironmentPrunePolicy
fn clone(&self) -> PythonEnvironmentPrunePolicy
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read more§impl Debug for PythonEnvironmentPrunePolicy
impl Debug for PythonEnvironmentPrunePolicy
§impl PartialEq for PythonEnvironmentPrunePolicy
impl PartialEq for PythonEnvironmentPrunePolicy
§fn eq(&self, other: &PythonEnvironmentPrunePolicy) -> bool
fn eq(&self, other: &PythonEnvironmentPrunePolicy) -> bool
Tests for
self and other values to be equal, and is used by ==.§impl Serialize for PythonEnvironmentPrunePolicy
impl Serialize for PythonEnvironmentPrunePolicy
§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl Copy for PythonEnvironmentPrunePolicy
impl Eq for PythonEnvironmentPrunePolicy
impl StructuralPartialEq for PythonEnvironmentPrunePolicy
Auto Trait Implementations§
impl Freeze for PythonEnvironmentPrunePolicy
impl RefUnwindSafe for PythonEnvironmentPrunePolicy
impl Send for PythonEnvironmentPrunePolicy
impl Sync for PythonEnvironmentPrunePolicy
impl Unpin for PythonEnvironmentPrunePolicy
impl UnsafeUnpin for PythonEnvironmentPrunePolicy
impl UnwindSafe for PythonEnvironmentPrunePolicy
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> 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 more