pub enum LeaseDuration {
Infinite,
Fixed,
}
Variants§
Trait Implementations§
source§impl AsRef<str> for LeaseDuration
impl AsRef<str> for LeaseDuration
source§impl Clone for LeaseDuration
impl Clone for LeaseDuration
source§fn clone(&self) -> LeaseDuration
fn clone(&self) -> LeaseDuration
Returns a copy 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 LeaseDuration
impl Debug for LeaseDuration
source§impl<'de> Deserialize<'de> for LeaseDuration
impl<'de> Deserialize<'de> for LeaseDuration
source§fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl Display for LeaseDuration
impl Display for LeaseDuration
source§impl From<LeaseDuration> for &'static str
impl From<LeaseDuration> for &'static str
source§fn from(e: LeaseDuration) -> Self
fn from(e: LeaseDuration) -> Self
Converts to this type from the input type.
source§impl FromStr for LeaseDuration
impl FromStr for LeaseDuration
source§impl FromStringOptional<LeaseDuration> for LeaseDuration
impl FromStringOptional<LeaseDuration> for LeaseDuration
fn from_str_optional(s: &str) -> Result<LeaseDuration>
source§impl PartialEq for LeaseDuration
impl PartialEq for LeaseDuration
source§impl PartialOrd for LeaseDuration
impl PartialOrd for LeaseDuration
source§impl Serialize for LeaseDuration
impl Serialize for LeaseDuration
impl Copy for LeaseDuration
impl Eq for LeaseDuration
impl StructuralPartialEq for LeaseDuration
Auto Trait Implementations§
impl Freeze for LeaseDuration
impl RefUnwindSafe for LeaseDuration
impl Send for LeaseDuration
impl Sync for LeaseDuration
impl Unpin for LeaseDuration
impl UnwindSafe for LeaseDuration
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§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)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.