Enum qbit_api_rs::types::RatioLimit
source · pub enum RatioLimit {
Limit {
ratio_limit: f64,
},
Special {
ratio_limit: i8,
},
}
Expand description
/api/v2/torrents/setShareLimits
TorrentsSetShareLimitsForm::ratio_limit
define this type to solve the problem that if ratio_limit is a f64, the value -2 and -1 will be serialized to -2.0 and -1.0
Variants§
Trait Implementations§
source§impl Debug for RatioLimit
impl Debug for RatioLimit
source§impl<'de> Deserialize<'de> for RatioLimit
impl<'de> Deserialize<'de> for RatioLimit
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
Auto Trait Implementations§
impl RefUnwindSafe for RatioLimit
impl Send for RatioLimit
impl Sync for RatioLimit
impl Unpin for RatioLimit
impl UnwindSafe for RatioLimit
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