pub enum RealtimeRoute<'a> {
CreateCall,
CreateLiveCall,
Connect,
Live {
call_id: Option<&'a str>,
},
HangupCall {
call_id: &'a str,
},
CreateLiveSession,
LiveSession {
session_id: Option<&'a str>,
},
HangupLiveSession {
session_id: &'a str,
},
}Expand description
HTTP/WS entry paths for the OpenAI realtime family. The host still owns authentication, model routing and upgrading the connection.
Variants§
Implementations§
Source§impl<'a> RealtimeRoute<'a>
impl<'a> RealtimeRoute<'a>
Sourcepub fn from_request(method: &Method, path: &'a str) -> Option<Self>
pub fn from_request(method: &Method, path: &'a str) -> Option<Self>
/live serves HTTP setup and a WebSocket; the method disambiguates it.
Sourcepub fn from_path(path: &'a str) -> Option<Self>
pub fn from_path(path: &'a str) -> Option<Self>
Match native paths, with or without the public /v1 mount.
Path call IDs remain percent-encoded so adapters can preserve them.
pub fn operation(self) -> OperationKey
Trait Implementations§
Source§impl<'a> Clone for RealtimeRoute<'a>
impl<'a> Clone for RealtimeRoute<'a>
impl<'a> Copy for RealtimeRoute<'a>
Source§impl<'a> Debug for RealtimeRoute<'a>
impl<'a> Debug for RealtimeRoute<'a>
impl<'a> Eq for RealtimeRoute<'a>
Source§impl<'a> PartialEq for RealtimeRoute<'a>
impl<'a> PartialEq for RealtimeRoute<'a>
impl<'a> StructuralPartialEq for RealtimeRoute<'a>
Auto Trait Implementations§
impl<'a> Freeze for RealtimeRoute<'a>
impl<'a> RefUnwindSafe for RealtimeRoute<'a>
impl<'a> Send for RealtimeRoute<'a>
impl<'a> Sync for RealtimeRoute<'a>
impl<'a> Unpin for RealtimeRoute<'a>
impl<'a> UnsafeUnpin for RealtimeRoute<'a>
impl<'a> UnwindSafe for RealtimeRoute<'a>
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