pub struct CostBreakdown {
pub transport: Option<f64>,
pub stt: Option<f64>,
pub llm: Option<f64>,
pub tts: Option<f64>,
pub vapi: Option<f64>,
pub chat: Option<f64>,
pub total: Option<f64>,
pub llm_prompt_tokens: Option<f64>,
pub llm_completion_tokens: Option<f64>,
pub tts_characters: Option<f64>,
pub analysis_cost_breakdown: Option<AnalysisCostBreakdown>,
}
Fields§
§transport: Option<f64>
This is the cost of the transport provider, like Twilio or Vonage.
stt: Option<f64>
This is the cost of the speech-to-text service.
llm: Option<f64>
This is the cost of the language model.
tts: Option<f64>
This is the cost of the text-to-speech service.
vapi: Option<f64>
This is the cost of Vapi.
chat: Option<f64>
This is the cost of chat interactions.
total: Option<f64>
This is the total cost of the call.
llm_prompt_tokens: Option<f64>
This is the LLM prompt tokens used for the call.
llm_completion_tokens: Option<f64>
This is the LLM completion tokens used for the call.
tts_characters: Option<f64>
This is the TTS characters used for the call.
analysis_cost_breakdown: Option<AnalysisCostBreakdown>
This is the cost of the analysis.
Implementations§
Source§impl CostBreakdown
impl CostBreakdown
pub fn new() -> CostBreakdown
Trait Implementations§
Source§impl Clone for CostBreakdown
impl Clone for CostBreakdown
Source§fn clone(&self) -> CostBreakdown
fn clone(&self) -> CostBreakdown
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for CostBreakdown
impl Debug for CostBreakdown
Source§impl Default for CostBreakdown
impl Default for CostBreakdown
Source§fn default() -> CostBreakdown
fn default() -> CostBreakdown
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for CostBreakdown
impl<'de> Deserialize<'de> for CostBreakdown
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 CostBreakdown
impl PartialEq for CostBreakdown
Source§impl Serialize for CostBreakdown
impl Serialize for CostBreakdown
impl StructuralPartialEq for CostBreakdown
Auto Trait Implementations§
impl Freeze for CostBreakdown
impl RefUnwindSafe for CostBreakdown
impl Send for CostBreakdown
impl Sync for CostBreakdown
impl Unpin for CostBreakdown
impl UnwindSafe for CostBreakdown
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