pub struct HeadlessPromptEncoder {
pub dialect: DialectDescriptor,
pub max_encoded_bytes: usize,
}Expand description
Headless CLI encoder: plain text prompt body for Z.ai / Claude print mode.
Prompt on argv is a documented profile exception (CLI product contract); the encoder still owns the text content (not secrets).
Fields§
§dialect: DialectDescriptorDialect stamp.
max_encoded_bytes: usizeMax bytes.
Implementations§
Trait Implementations§
Source§impl Clone for HeadlessPromptEncoder
impl Clone for HeadlessPromptEncoder
Source§fn clone(&self) -> HeadlessPromptEncoder
fn clone(&self) -> HeadlessPromptEncoder
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 HeadlessPromptEncoder
impl Debug for HeadlessPromptEncoder
Source§impl OutboundDialectEncoder for HeadlessPromptEncoder
impl OutboundDialectEncoder for HeadlessPromptEncoder
Source§fn encode_initial(
&self,
request: InitialEncodeRequest<'_>,
) -> Result<EncodedExchange, EncodingError>
fn encode_initial( &self, request: InitialEncodeRequest<'_>, ) -> Result<EncodedExchange, EncodingError>
Encode the first provider exchange for a transaction.
Source§fn encode_tool_continuation(
&self,
_request: ToolContinuationEncodeRequest<'_>,
) -> Result<EncodedExchange, EncodingError>
fn encode_tool_continuation( &self, _request: ToolContinuationEncodeRequest<'_>, ) -> Result<EncodedExchange, EncodingError>
Encode a tool-result continuation exchange.
Auto Trait Implementations§
impl Freeze for HeadlessPromptEncoder
impl RefUnwindSafe for HeadlessPromptEncoder
impl Send for HeadlessPromptEncoder
impl Sync for HeadlessPromptEncoder
impl Unpin for HeadlessPromptEncoder
impl UnsafeUnpin for HeadlessPromptEncoder
impl UnwindSafe for HeadlessPromptEncoder
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