#[repr(i32)]pub enum ManualOrdStatus {
Unspecified = 0,
Wait = 1,
Failed = 2,
PendingReview = 3,
Approved = 4,
Rejected = 5,
Executed = 6,
Withdrawn = 7,
}Expand description
人工单状态
Variants§
Unspecified = 0
未知状态
Wait = 1
等待创建
Failed = 2
创建失败
PendingReview = 3
等待审批
Approved = 4
审批通过
Rejected = 5
已拒绝
Executed = 6
已生效
Withdrawn = 7
已撤销
Implementations§
Source§impl ManualOrdStatus
impl ManualOrdStatus
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 ManualOrdStatus
impl Clone for ManualOrdStatus
Source§fn clone(&self) -> ManualOrdStatus
fn clone(&self) -> ManualOrdStatus
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 ManualOrdStatus
impl Debug for ManualOrdStatus
Source§impl Default for ManualOrdStatus
impl Default for ManualOrdStatus
Source§fn default() -> ManualOrdStatus
fn default() -> ManualOrdStatus
Returns the “default value” for a type. Read more
Source§impl From<ManualOrdStatus> for i32
impl From<ManualOrdStatus> for i32
Source§fn from(value: ManualOrdStatus) -> i32
fn from(value: ManualOrdStatus) -> i32
Converts to this type from the input type.
Source§impl Hash for ManualOrdStatus
impl Hash for ManualOrdStatus
Source§impl Ord for ManualOrdStatus
impl Ord for ManualOrdStatus
Source§fn cmp(&self, other: &ManualOrdStatus) -> Ordering
fn cmp(&self, other: &ManualOrdStatus) -> 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 ManualOrdStatus
impl PartialEq for ManualOrdStatus
Source§impl PartialOrd for ManualOrdStatus
impl PartialOrd for ManualOrdStatus
Source§impl TryFrom<i32> for ManualOrdStatus
impl TryFrom<i32> for ManualOrdStatus
Source§type Error = UnknownEnumValue
type Error = UnknownEnumValue
The type returned in the event of a conversion error.
Source§fn try_from(value: i32) -> Result<ManualOrdStatus, UnknownEnumValue>
fn try_from(value: i32) -> Result<ManualOrdStatus, UnknownEnumValue>
Performs the conversion.
impl Copy for ManualOrdStatus
impl Eq for ManualOrdStatus
impl StructuralPartialEq for ManualOrdStatus
Auto Trait Implementations§
impl Freeze for ManualOrdStatus
impl RefUnwindSafe for ManualOrdStatus
impl Send for ManualOrdStatus
impl Sync for ManualOrdStatus
impl Unpin for ManualOrdStatus
impl UnsafeUnpin for ManualOrdStatus
impl UnwindSafe for ManualOrdStatus
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.