pub struct DialectDescriptor {
pub family: DialectFamily,
pub version: String,
pub framing: String,
pub profile: Option<String>,
}Expand description
Stable, bounded, versioned dialect descriptor.
Fields§
§family: DialectFamilyDialect family.
version: StringVersion string (e.g. "v1").
framing: StringFraming (e.g. "sse", "json_rpc", "jsonl").
profile: Option<String>Optional profile qualifier (e.g. "grok_build").
Implementations§
Source§impl DialectDescriptor
impl DialectDescriptor
Sourcepub fn openai_chat_completions(version: impl Into<String>) -> Self
pub fn openai_chat_completions(version: impl Into<String>) -> Self
OpenAI Chat Completions streaming SSE (direct-LLM).
Sourcepub fn acp_json_rpc(version: impl Into<String>) -> Self
pub fn acp_json_rpc(version: impl Into<String>) -> Self
ACP / JSON-RPC dialect used by Grok Build.
Sourcepub fn cursor_acp(version: impl Into<String>) -> Self
pub fn cursor_acp(version: impl Into<String>) -> Self
Cursor Agent ACP over stdio (newline-delimited JSON-RPC).
Sourcepub fn agy_acp(version: impl Into<String>) -> Self
pub fn agy_acp(version: impl Into<String>) -> Self
Antigravity / agy ACP over stdio (native or agy-acp bridge).
Sourcepub fn codex_acp(version: impl Into<String>) -> Self
pub fn codex_acp(version: impl Into<String>) -> Self
OpenAI Codex ACP over stdio (@agentclientprotocol/codex-acp adapter).
Sourcepub fn zai_cli(version: impl Into<String>) -> Self
pub fn zai_cli(version: impl Into<String>) -> Self
Z.ai CLI headless (zai -p): OpenAI-compatible chat messages as NDJSON lines.
Sourcepub fn claude_code(version: impl Into<String>) -> Self
pub fn claude_code(version: impl Into<String>) -> Self
Claude Code headless (claude -p --output-format stream-json --verbose).
Trait Implementations§
Source§impl Clone for DialectDescriptor
impl Clone for DialectDescriptor
Source§fn clone(&self) -> DialectDescriptor
fn clone(&self) -> DialectDescriptor
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 DialectDescriptor
impl Debug for DialectDescriptor
Source§impl<'de> Deserialize<'de> for DialectDescriptor
impl<'de> Deserialize<'de> for DialectDescriptor
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 Eq for DialectDescriptor
Source§impl PartialEq for DialectDescriptor
impl PartialEq for DialectDescriptor
Source§impl Serialize for DialectDescriptor
impl Serialize for DialectDescriptor
impl StructuralPartialEq for DialectDescriptor
Auto Trait Implementations§
impl Freeze for DialectDescriptor
impl RefUnwindSafe for DialectDescriptor
impl Send for DialectDescriptor
impl Sync for DialectDescriptor
impl Unpin for DialectDescriptor
impl UnsafeUnpin for DialectDescriptor
impl UnwindSafe for DialectDescriptor
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