pub struct StoredPayload {
pub extra: Map<String, Value>,
/* private fields */
}Expand description
Read schema-5 payloads without inventing an instruction field for older audits. Declarations still require a String; omission/null tolerance belongs only here.
Fields§
§extra: Map<String, Value>Implementations§
Source§impl StoredPayload
impl StoredPayload
pub fn instruction(&self) -> &str
Trait Implementations§
Source§impl Clone for StoredPayload
impl Clone for StoredPayload
Source§impl Debug for StoredPayload
impl Debug for StoredPayload
Source§impl<'de> Deserialize<'de> for StoredPayload
impl<'de> Deserialize<'de> for StoredPayload
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
Source§impl From<&EvalPayload> for StoredPayload
impl From<&EvalPayload> for StoredPayload
Source§fn from(payload: &EvalPayload) -> Self
fn from(payload: &EvalPayload) -> Self
Converts to this type from the input type.
Source§impl From<&Option<EvalPayload>> for StoredPayload
impl From<&Option<EvalPayload>> for StoredPayload
Source§fn from(payload: &Option<EvalPayload>) -> Self
fn from(payload: &Option<EvalPayload>) -> Self
Converts to this type from the input type.
Source§impl From<Option<&EvalPayload>> for StoredPayload
impl From<Option<&EvalPayload>> for StoredPayload
Source§fn from(payload: Option<&EvalPayload>) -> Self
fn from(payload: Option<&EvalPayload>) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for StoredPayload
impl RefUnwindSafe for StoredPayload
impl Send for StoredPayload
impl Sync for StoredPayload
impl Unpin for StoredPayload
impl UnsafeUnpin for StoredPayload
impl UnwindSafe for StoredPayload
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoToolOutput for Twhere
T: Serialize + 'static,
impl<T> IntoToolOutput for Twhere
T: Serialize + 'static,
Source§fn into_tool_output(self) -> Result<ToolOutput, ToolExecutionError>
fn into_tool_output(self) -> Result<ToolOutput, ToolExecutionError>
Convert this value without routing structured data through a string.