pub struct ConfigurationBlock<'a> {Show 14 fields
pub node: &'a Node,
pub kind: &'a str,
pub id: Option<&'a str>,
pub title: Option<&'a str>,
pub dialect: Option<&'a str>,
pub adapter: Option<&'a str>,
pub target: Option<&'a str>,
pub schema: Option<&'a str>,
pub schema_sha256: Option<&'a str>,
pub format: &'a str,
pub data: Option<&'a Value>,
pub body: Option<&'a str>,
pub attrs: &'a Attrs,
pub location: Location<'a>,
}Expand description
A block that carries configuration (§9.1): a structured config, workflow, schedule, sandbox, test,
eval, data or properties body.
Fields§
§node: &'a Node§kind: &'a str§id: Option<&'a str>§title: Option<&'a str>§dialect: Option<&'a str>The native dialect the body is written in (agentd/config, instruction/workflow).
adapter: Option<&'a str>The compiler or runtime profile it is for (adapter), and the object it configures (target).
target: Option<&'a str>§schema: Option<&'a str>The native schema that validates it, and its pin (schema, schema-sha256).
schema_sha256: Option<&'a str>§format: &'a strThe body’s format: yaml, json (and, for data, csv or text).
data: Option<&'a Value>The body’s data, when it parsed.
body: Option<&'a str>The body as written (Node::body_source).
attrs: &'a Attrs§location: Location<'a>Implementations§
Trait Implementations§
Source§impl<'a> Clone for ConfigurationBlock<'a>
impl<'a> Clone for ConfigurationBlock<'a>
Source§impl<'a> Debug for ConfigurationBlock<'a>
impl<'a> Debug for ConfigurationBlock<'a>
Source§impl<'a> PartialEq for ConfigurationBlock<'a>
impl<'a> PartialEq for ConfigurationBlock<'a>
impl<'a> StructuralPartialEq for ConfigurationBlock<'a>
Auto Trait Implementations§
impl<'a> Forget for ConfigurationBlock<'a>
impl<'a> Freeze for ConfigurationBlock<'a>
impl<'a> Move for ConfigurationBlock<'a>
impl<'a> RefUnwindSafe for ConfigurationBlock<'a>
impl<'a> Send for ConfigurationBlock<'a>
impl<'a> Sync for ConfigurationBlock<'a>
impl<'a> Unpin for ConfigurationBlock<'a>
impl<'a> UnsafeUnpin for ConfigurationBlock<'a>
impl<'a> UnwindSafe for ConfigurationBlock<'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