#[repr(i32)]pub enum RetCode {
RetSucc = 0,
RetNoStock = 1,
RetDealtError = 2,
RetNoLinkId = 3,
RetOverLimit = 4,
RetErrSymbol = 5,
RetEmptyStock = 6,
}Variants§
RetSucc = 0
成功
RetNoStock = 1
找不到股票
RetDealtError = 2
处理失败
RetNoLinkId = 3
没有正股
RetOverLimit = 4
超出请求上限
RetErrSymbol = 5
请求股票不正确
RetEmptyStock = 6
请求列表为空
Implementations§
Source§impl RetCode
impl RetCode
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 Ord for RetCode
impl Ord for RetCode
Source§impl PartialOrd for RetCode
impl PartialOrd for RetCode
impl Copy for RetCode
impl Eq for RetCode
impl StructuralPartialEq for RetCode
Auto Trait Implementations§
impl Freeze for RetCode
impl RefUnwindSafe for RetCode
impl Send for RetCode
impl Sync for RetCode
impl Unpin for RetCode
impl UnsafeUnpin for RetCode
impl UnwindSafe for RetCode
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.