pub struct AutoReloadPlan {
pub credits: f64,
pub threshold: f64,
}
Fields§
§credits: f64
This the amount of credits to reload.
threshold: f64
This is the limit at which the reload is triggered.
Implementations§
Source§impl AutoReloadPlan
impl AutoReloadPlan
pub fn new(credits: f64, threshold: f64) -> AutoReloadPlan
Trait Implementations§
Source§impl Clone for AutoReloadPlan
impl Clone for AutoReloadPlan
Source§fn clone(&self) -> AutoReloadPlan
fn clone(&self) -> AutoReloadPlan
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for AutoReloadPlan
impl Debug for AutoReloadPlan
Source§impl Default for AutoReloadPlan
impl Default for AutoReloadPlan
Source§fn default() -> AutoReloadPlan
fn default() -> AutoReloadPlan
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for AutoReloadPlan
impl<'de> Deserialize<'de> for AutoReloadPlan
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 PartialEq for AutoReloadPlan
impl PartialEq for AutoReloadPlan
Source§impl Serialize for AutoReloadPlan
impl Serialize for AutoReloadPlan
impl StructuralPartialEq for AutoReloadPlan
Auto Trait Implementations§
impl Freeze for AutoReloadPlan
impl RefUnwindSafe for AutoReloadPlan
impl Send for AutoReloadPlan
impl Sync for AutoReloadPlan
impl Unpin for AutoReloadPlan
impl UnwindSafe for AutoReloadPlan
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