pub struct FreeTierInfo {
pub exhausted: bool,
pub used_ratio: f64,
}Expand description
FreeTierInfo : Read-only. Present when the workspace has no AI provider of its own and is running on Windmill’s free tier. Ignored on write.
Fields§
§exhausted: boolThe one-time grant is spent; no provider is served and the user must add their own API key.
used_ratio: f64Fraction of the grant consumed, 0 to 1.
Implementations§
Source§impl FreeTierInfo
impl FreeTierInfo
Sourcepub fn new(exhausted: bool, used_ratio: f64) -> FreeTierInfo
pub fn new(exhausted: bool, used_ratio: f64) -> FreeTierInfo
Read-only. Present when the workspace has no AI provider of its own and is running on Windmill’s free tier. Ignored on write.
Trait Implementations§
Source§impl Clone for FreeTierInfo
impl Clone for FreeTierInfo
Source§fn clone(&self) -> FreeTierInfo
fn clone(&self) -> FreeTierInfo
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 FreeTierInfo
impl Debug for FreeTierInfo
Source§impl Default for FreeTierInfo
impl Default for FreeTierInfo
Source§fn default() -> FreeTierInfo
fn default() -> FreeTierInfo
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for FreeTierInfo
impl<'de> Deserialize<'de> for FreeTierInfo
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 FreeTierInfo
impl PartialEq for FreeTierInfo
Source§impl Serialize for FreeTierInfo
impl Serialize for FreeTierInfo
impl StructuralPartialEq for FreeTierInfo
Auto Trait Implementations§
impl Freeze for FreeTierInfo
impl RefUnwindSafe for FreeTierInfo
impl Send for FreeTierInfo
impl Sync for FreeTierInfo
impl Unpin for FreeTierInfo
impl UnsafeUnpin for FreeTierInfo
impl UnwindSafe for FreeTierInfo
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