pub struct TransportCost {
pub type: Type,
pub provider: Option<Provider>,
pub minutes: f64,
pub cost: f64,
}Fields§
§type: TypeThis is the type of cost, always ‘transport’ for this class.
provider: Option<Provider>§minutes: f64This is the minutes of transport usage. This should match call.endedAt - call.startedAt.
cost: f64This is the cost of the component in USD.
Implementations§
Source§impl TransportCost
impl TransportCost
Trait Implementations§
Source§impl Clone for TransportCost
impl Clone for TransportCost
Source§fn clone(&self) -> TransportCost
fn clone(&self) -> TransportCost
Returns a copy of the value. Read more
1.0.0 · 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 TransportCost
impl Debug for TransportCost
Source§impl Default for TransportCost
impl Default for TransportCost
Source§fn default() -> TransportCost
fn default() -> TransportCost
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for TransportCost
impl<'de> Deserialize<'de> for TransportCost
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 TransportCost
impl PartialEq for TransportCost
Source§impl Serialize for TransportCost
impl Serialize for TransportCost
impl StructuralPartialEq for TransportCost
Auto Trait Implementations§
impl Freeze for TransportCost
impl RefUnwindSafe for TransportCost
impl Send for TransportCost
impl Sync for TransportCost
impl Unpin for TransportCost
impl UnwindSafe for TransportCost
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