pub struct DynamicProjection {
pub operation: DynamicOperation,
pub task_family: TaskFamily,
pub question: String,
pub labels: Vec<String>,
pub context: Vec<ProjectedField>,
pub output: DynamicOutputKind,
}Expand description
The bytes a dynamic backend receives (3.3): the request’s data fields as canonical JSON, every value a length-delimited, escaped JSON string or scalar under a fixed member name. An adapter maps these members through its versioned template; no member names a system, developer, tool, function, role, header, endpoint, model or artifact field, so no caller value can enter one. Context provenance, the scope and the bounds stay with Rustev.
Fields§
§operation: DynamicOperation§task_family: TaskFamily§question: String§labels: Vec<String>§context: Vec<ProjectedField>§output: DynamicOutputKindImplementations§
Source§impl DynamicProjection
impl DynamicProjection
pub fn of(q: &DynamicQuestion) -> DynamicProjection
Trait Implementations§
Source§impl Clone for DynamicProjection
impl Clone for DynamicProjection
Source§impl Debug for DynamicProjection
impl Debug for DynamicProjection
Source§impl<'de> Deserialize<'de> for DynamicProjection
impl<'de> Deserialize<'de> for DynamicProjection
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 DynamicProjection
Source§impl JsonSchema for DynamicProjection
impl JsonSchema for DynamicProjection
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreSource§impl PartialEq for DynamicProjection
impl PartialEq for DynamicProjection
Source§impl Serialize for DynamicProjection
impl Serialize for DynamicProjection
impl StructuralPartialEq for DynamicProjection
Auto Trait Implementations§
impl Freeze for DynamicProjection
impl RefUnwindSafe for DynamicProjection
impl Send for DynamicProjection
impl Sync for DynamicProjection
impl Unpin for DynamicProjection
impl UnsafeUnpin for DynamicProjection
impl UnwindSafe for DynamicProjection
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