pub struct RealtimeResponse {
pub id: String,
pub object: String,
pub status: String,
pub usage: Option<RealtimeUsage>,
}Available on crate feature
realtime only.Expand description
RealtimeResponse: emitted by response.created / response.done.
Fields§
§id: StringResponse id.
object: StringAlways "realtime.response".
status: StringResponse status (in_progress, completed, cancelled, failed, or
incomplete).
usage: Option<RealtimeUsage>Token usage (present on response.done).
Trait Implementations§
Source§impl Clone for RealtimeResponse
impl Clone for RealtimeResponse
Source§fn clone(&self) -> RealtimeResponse
fn clone(&self) -> RealtimeResponse
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 RealtimeResponse
impl Debug for RealtimeResponse
Source§impl<'de> Deserialize<'de> for RealtimeResponse
impl<'de> Deserialize<'de> for RealtimeResponse
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 RealtimeResponse
impl RefUnwindSafe for RealtimeResponse
impl Send for RealtimeResponse
impl Sync for RealtimeResponse
impl Unpin for RealtimeResponse
impl UnsafeUnpin for RealtimeResponse
impl UnwindSafe for RealtimeResponse
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