pub struct VoiceCost {
pub type: TypeTrue,
pub voice: Value,
pub characters: f64,
pub cost: f64,
}
Fields§
§type: TypeTrue
This is the type of cost, always ‘voice’ for this class.
voice: Value
This is the voice that was used during the call. This matches one of the following: - call.assistant.voice
, - call.assistantId->voice
, - call.squad[n].assistant.voice
, - call.squad[n].assistantId->voice
, - call.squadId->[n].assistant.voice
, - call.squadId->[n].assistantId->voice
.
characters: f64
This is the number of characters that were generated during the call. These should be total characters used in the call for single assistant calls, while squad calls will have multiple voice costs one for each assistant that was used.
cost: f64
This is the cost of the component in USD.
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for VoiceCost
impl<'de> Deserialize<'de> for VoiceCost
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
impl StructuralPartialEq for VoiceCost
Auto Trait Implementations§
impl Freeze for VoiceCost
impl RefUnwindSafe for VoiceCost
impl Send for VoiceCost
impl Sync for VoiceCost
impl Unpin for VoiceCost
impl UnwindSafe for VoiceCost
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