Struct fastly_api::models::billing_total::BillingTotal
source · [−]pub struct BillingTotal {Show 16 fields
pub bandwidth: Option<f32>,
pub bandwidth_cost: Option<f32>,
pub bandwidth_units: Option<String>,
pub cost: Option<f32>,
pub cost_before_discount: Option<f32>,
pub discount: Option<f32>,
pub extras: Option<Vec<BillingTotalExtras>>,
pub extras_cost: Option<f32>,
pub incurred_cost: Option<f32>,
pub overage: Option<f32>,
pub plan_code: Option<String>,
pub plan_minimum: Option<f32>,
pub plan_name: Option<String>,
pub requests: Option<f32>,
pub requests_cost: Option<f32>,
pub terms: Option<String>,
}Expand description
BillingTotal : Complete summary of the billing information.
Fields
bandwidth: Option<f32>The total amount of bandwidth used this month (See bandwidth_units for measurement).
bandwidth_cost: Option<f32>The cost of the bandwidth used this month in USD.
bandwidth_units: Option<String>Bandwidth measurement units based on billing plan.
cost: Option<f32>The final amount to be paid.
cost_before_discount: Option<f32>Total incurred cost plus extras cost.
discount: Option<f32>Calculated discount rate.
extras: Option<Vec<BillingTotalExtras>>A list of any extras for this invoice.
extras_cost: Option<f32>Total cost of all extras.
incurred_cost: Option<f32>The total cost of bandwidth and requests used this month.
overage: Option<f32>How much over the plan minimum has been incurred.
plan_code: Option<String>The short code the plan this invoice was generated under.
plan_minimum: Option<f32>The minimum cost of this plan.
plan_name: Option<String>The name of the plan this invoice was generated under.
requests: Option<f32>The total number of requests used this month.
requests_cost: Option<f32>The cost of the requests used this month.
terms: Option<String>Payment terms. Almost always Net15.
Implementations
sourceimpl BillingTotal
impl BillingTotal
sourcepub fn new() -> BillingTotal
pub fn new() -> BillingTotal
Complete summary of the billing information.
Trait Implementations
sourceimpl Clone for BillingTotal
impl Clone for BillingTotal
sourcefn clone(&self) -> BillingTotal
fn clone(&self) -> BillingTotal
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read more
sourceimpl Debug for BillingTotal
impl Debug for BillingTotal
sourceimpl Default for BillingTotal
impl Default for BillingTotal
sourcefn default() -> BillingTotal
fn default() -> BillingTotal
Returns the “default value” for a type. Read more
sourceimpl<'de> Deserialize<'de> for BillingTotal
impl<'de> Deserialize<'de> for BillingTotal
sourcefn 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
sourceimpl PartialEq<BillingTotal> for BillingTotal
impl PartialEq<BillingTotal> for BillingTotal
sourcefn eq(&self, other: &BillingTotal) -> bool
fn eq(&self, other: &BillingTotal) -> bool
This method tests for self and other values to be equal, and is used
by ==. Read more
sourceimpl Serialize for BillingTotal
impl Serialize for BillingTotal
impl StructuralPartialEq for BillingTotal
Auto Trait Implementations
impl RefUnwindSafe for BillingTotal
impl Send for BillingTotal
impl Sync for BillingTotal
impl Unpin for BillingTotal
impl UnwindSafe for BillingTotal
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where
S: Into<Dispatch>,
Attaches the provided Subscriber to this type, returning a
WithDispatch wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber to this type, returning a
WithDispatch wrapper. Read more