#[repr(i32)]pub enum FutureDuration {
FutureUnknown = 0,
FutureNext1Day = 1,
FutureNext1Week = 2,
FutureNext2Week = 3,
FutureNext1Month = 4,
FutureNext2Month = 5,
}Expand description
未来N天
Variants§
FutureUnknown = 0
未知选项
FutureNext1Day = 1
未来1天
FutureNext1Week = 2
未来1周
FutureNext2Week = 3
未来2周
FutureNext1Month = 4
未来1月
FutureNext2Month = 5
未来2月
Implementations§
Source§impl FutureDuration
impl FutureDuration
Sourcepub fn as_str_name(&self) -> &'static str
pub fn as_str_name(&self) -> &'static str
String value of the enum field names used in the ProtoBuf definition.
The values are not transformed in any way and thus are considered stable (if the ProtoBuf definition does not change) and safe for programmatic use.
Sourcepub fn from_str_name(value: &str) -> Option<Self>
pub fn from_str_name(value: &str) -> Option<Self>
Creates an enum from field names used in the ProtoBuf definition.
Trait Implementations§
Source§impl Clone for FutureDuration
impl Clone for FutureDuration
Source§fn clone(&self) -> FutureDuration
fn clone(&self) -> FutureDuration
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 FutureDuration
impl Debug for FutureDuration
Source§impl Default for FutureDuration
impl Default for FutureDuration
Source§fn default() -> FutureDuration
fn default() -> FutureDuration
Returns the “default value” for a type. Read more
Source§impl From<FutureDuration> for i32
impl From<FutureDuration> for i32
Source§fn from(value: FutureDuration) -> i32
fn from(value: FutureDuration) -> i32
Converts to this type from the input type.
Source§impl Hash for FutureDuration
impl Hash for FutureDuration
Source§impl Ord for FutureDuration
impl Ord for FutureDuration
Source§fn cmp(&self, other: &FutureDuration) -> Ordering
fn cmp(&self, other: &FutureDuration) -> 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 FutureDuration
impl PartialEq for FutureDuration
Source§impl PartialOrd for FutureDuration
impl PartialOrd for FutureDuration
Source§impl TryFrom<i32> for FutureDuration
impl TryFrom<i32> for FutureDuration
Source§type Error = UnknownEnumValue
type Error = UnknownEnumValue
The type returned in the event of a conversion error.
Source§fn try_from(value: i32) -> Result<FutureDuration, UnknownEnumValue>
fn try_from(value: i32) -> Result<FutureDuration, UnknownEnumValue>
Performs the conversion.
impl Copy for FutureDuration
impl Eq for FutureDuration
impl StructuralPartialEq for FutureDuration
Auto Trait Implementations§
impl Freeze for FutureDuration
impl RefUnwindSafe for FutureDuration
impl Send for FutureDuration
impl Sync for FutureDuration
impl Unpin for FutureDuration
impl UnsafeUnpin for FutureDuration
impl UnwindSafe for FutureDuration
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
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.