pub enum UpgradeType {
Prompt,
Force,
}Expand description
升级强制度。force = min_version > current_version,客户端必须升级。
Variants§
Trait Implementations§
Source§impl Clone for UpgradeType
impl Clone for UpgradeType
Source§fn clone(&self) -> UpgradeType
fn clone(&self) -> UpgradeType
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl ComposeSchema for UpgradeType
impl ComposeSchema for UpgradeType
impl Copy for UpgradeType
Source§impl Debug for UpgradeType
impl Debug for UpgradeType
Source§impl<'de> Deserialize<'de> for UpgradeType
impl<'de> Deserialize<'de> for UpgradeType
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
impl Eq for UpgradeType
Source§impl PartialEq for UpgradeType
impl PartialEq for UpgradeType
Source§fn eq(&self, other: &UpgradeType) -> bool
fn eq(&self, other: &UpgradeType) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for UpgradeType
impl Serialize for UpgradeType
impl StructuralPartialEq for UpgradeType
Auto Trait Implementations§
impl Freeze for UpgradeType
impl RefUnwindSafe for UpgradeType
impl Send for UpgradeType
impl Sync for UpgradeType
impl Unpin for UpgradeType
impl UnsafeUnpin for UpgradeType
impl UnwindSafe for UpgradeType
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<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
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.