pub struct Used {
pub surface: Surface,
pub key: String,
pub value: Option<String>,
pub at: String,
}Expand description
A key a file uses, as floor reads it.
Fields§
§surface: Surface§key: String§value: Option<String>The rule’s action, for a key whose gate depends on it.
at: StringWhere the file uses it, for the message: “[package.tools] bash = "deny"”.
Implementations§
Source§impl Used
impl Used
Sourcepub fn profile_effort(agent: &str, label: &str, written: Option<&str>) -> Self
pub fn profile_effort(agent: &str, label: &str, written: Option<&str>) -> Self
An effort an Agent’s frontmatter writes, as written, named by label (effort, or a
model policy’s override): null is YAML null, anything else the text of a string.
Sourcepub fn profile_rule(agent: &str, rule: &str, action: &str) -> Self
pub fn profile_rule(agent: &str, rule: &str, action: &str) -> Self
A tool rule in an agent’s frontmatter tools.
Auto Trait Implementations§
impl Forget for Used
impl Freeze for Used
impl Move for Used
impl RefUnwindSafe for Used
impl Send for Used
impl Sync for Used
impl Unpin for Used
impl UnsafeUnpin for Used
impl UnwindSafe for Used
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