pub struct UsageForecastConfig {
pub enabled: bool,
pub rate_window_minutes: u64,
pub min_priced_requests: u64,
pub reset_time: String,
pub reset_utc_offset: String,
}Fields§
§enabled: boolWhether spend forecast rendering is enabled.
rate_window_minutes: u64Rolling spend-rate window used for projection.
min_priced_requests: u64Minimum priced requests before the forecast is treated as confident enough to show.
reset_time: StringDaily quota reset clock time in the reset timezone, formatted as HH:MM.
reset_utc_offset: StringReset timezone as a fixed UTC offset, for example +08:00.
Trait Implementations§
Source§impl Clone for UsageForecastConfig
impl Clone for UsageForecastConfig
Source§fn clone(&self) -> UsageForecastConfig
fn clone(&self) -> UsageForecastConfig
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 Debug for UsageForecastConfig
impl Debug for UsageForecastConfig
Source§impl Default for UsageForecastConfig
impl Default for UsageForecastConfig
Source§impl<'de> Deserialize<'de> for UsageForecastConfig
impl<'de> Deserialize<'de> for UsageForecastConfig
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 UsageForecastConfig
Source§impl PartialEq for UsageForecastConfig
impl PartialEq for UsageForecastConfig
Source§impl Serialize for UsageForecastConfig
impl Serialize for UsageForecastConfig
impl StructuralPartialEq for UsageForecastConfig
Auto Trait Implementations§
impl Freeze for UsageForecastConfig
impl RefUnwindSafe for UsageForecastConfig
impl Send for UsageForecastConfig
impl Sync for UsageForecastConfig
impl Unpin for UsageForecastConfig
impl UnsafeUnpin for UsageForecastConfig
impl UnwindSafe for UsageForecastConfig
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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.