#[repr(i32)]pub enum ValuationIntervalType {
Unknown = 0,
Month3 = 1,
Month6 = 2,
Year1 = 3,
Year3 = 4,
Since2019 = 5,
Year5 = 6,
Year10 = 7,
Year2 = 8,
Year20 = 9,
Year30 = 10,
}Expand description
估值历史区间类型
Variants§
Unknown = 0
未知
Month3 = 1
3个月
Month6 = 2
6个月
Year1 = 3
1年
Year3 = 4
3年
Since2019 = 5
从2019年起
Year5 = 6
5年
Year10 = 7
10年
Year2 = 8
2年
Year20 = 9
20年
Year30 = 10
30年
Implementations§
Source§impl ValuationIntervalType
impl ValuationIntervalType
Sourcepub fn is_valid(value: i32) -> bool
pub fn is_valid(value: i32) -> bool
Returns true if value is a variant of ValuationIntervalType.
Sourcepub fn from_i32(value: i32) -> Option<ValuationIntervalType>
👎Deprecated: Use the TryFrom<i32> implementation instead
pub fn from_i32(value: i32) -> Option<ValuationIntervalType>
Use the TryFrom<i32> implementation instead
Converts an i32 to a ValuationIntervalType, or None if value is not a valid variant.
Source§impl ValuationIntervalType
impl ValuationIntervalType
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 ValuationIntervalType
impl Clone for ValuationIntervalType
Source§fn clone(&self) -> ValuationIntervalType
fn clone(&self) -> ValuationIntervalType
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 ValuationIntervalType
impl Debug for ValuationIntervalType
Source§impl Default for ValuationIntervalType
impl Default for ValuationIntervalType
Source§fn default() -> ValuationIntervalType
fn default() -> ValuationIntervalType
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ValuationIntervalType
impl<'de> Deserialize<'de> for ValuationIntervalType
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 From<ValuationIntervalType> for i32
impl From<ValuationIntervalType> for i32
Source§fn from(value: ValuationIntervalType) -> i32
fn from(value: ValuationIntervalType) -> i32
Converts to this type from the input type.
Source§impl Hash for ValuationIntervalType
impl Hash for ValuationIntervalType
Source§impl Ord for ValuationIntervalType
impl Ord for ValuationIntervalType
Source§fn cmp(&self, other: &ValuationIntervalType) -> Ordering
fn cmp(&self, other: &ValuationIntervalType) -> 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 ValuationIntervalType
impl PartialEq for ValuationIntervalType
Source§impl PartialOrd for ValuationIntervalType
impl PartialOrd for ValuationIntervalType
Source§impl Serialize for ValuationIntervalType
impl Serialize for ValuationIntervalType
Source§impl TryFrom<i32> for ValuationIntervalType
impl TryFrom<i32> for ValuationIntervalType
Source§type Error = UnknownEnumValue
type Error = UnknownEnumValue
The type returned in the event of a conversion error.
Source§fn try_from(value: i32) -> Result<ValuationIntervalType, UnknownEnumValue>
fn try_from(value: i32) -> Result<ValuationIntervalType, UnknownEnumValue>
Performs the conversion.
impl Copy for ValuationIntervalType
impl Eq for ValuationIntervalType
impl StructuralPartialEq for ValuationIntervalType
Auto Trait Implementations§
impl Freeze for ValuationIntervalType
impl RefUnwindSafe for ValuationIntervalType
impl Send for ValuationIntervalType
impl Sync for ValuationIntervalType
impl Unpin for ValuationIntervalType
impl UnsafeUnpin for ValuationIntervalType
impl UnwindSafe for ValuationIntervalType
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