pub struct TenantBilling {
pub credits: Vec<CreditEntry>,
pub replies_used: i64,
}Fields§
§credits: Vec<CreditEntry>§replies_used: i64Implementations§
Source§impl TenantBilling
impl TenantBilling
pub fn has_credits(&self) -> bool
pub fn total_remaining(&self) -> i64
Trait Implementations§
Source§impl Clone for TenantBilling
impl Clone for TenantBilling
Source§fn clone(&self) -> TenantBilling
fn clone(&self) -> TenantBilling
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 TenantBilling
impl Debug for TenantBilling
Source§impl Default for TenantBilling
impl Default for TenantBilling
Source§fn default() -> TenantBilling
fn default() -> TenantBilling
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for TenantBilling
impl<'de> Deserialize<'de> for TenantBilling
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 Freeze for TenantBilling
impl RefUnwindSafe for TenantBilling
impl Send for TenantBilling
impl Sync for TenantBilling
impl Unpin for TenantBilling
impl UnsafeUnpin for TenantBilling
impl UnwindSafe for TenantBilling
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