Enum Kind Copy item path Source #[non_exhaustive]
pub enum Kind {
Shell,
FsRead,
FsWrite,
Net,
Fetch,
WebSearch,
UnknownTool,
EnvRead,
EnvSet,
Mcp,
}Expand description One kind of atomic action. Ordered as policy files list them.
This enum is marked as non-exhaustive Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
A command or a whole pipeline.
A file write, create, delete or move.
A host a read-only fetch tool (WebFetch) requests a URL from: a
narrower kind of net, so net rules apply to it as well (ADR-017).
A query a host’s own web search tool (WebSearch) sends to its search
provider. The agent chooses the words, not the host, so only defaults
decide it; no rule list names it.
A host tool the adapter cannot classify, so what it touches is unknown.
Only defaults decide it; no rule list names it.
An environment variable read.
An environment variable set.
Every kind, in policy-file order.
The name used in policy files and rule ids (fs.read).
The rule-list and defaults keys that apply to an atom of this kind,
most specific first: a fetch is also network access, so net lists
match it and defaults.net is its fallback when defaults.fetch is unset.
Performs copy-assignment from
source.
Read more Formats the value using the given formatter.
Read more Formats the value using the given formatter.
Read more The associated error which can be returned from parsing.
Parses a string
s to return a value of this type.
Read more Compares and returns the maximum of two values.
Read more Compares and returns the minimum of two values.
Read more Restrict a value to a certain interval.
Read more 🔬 This is a nightly-only experimental API. (clamp_to)
Restrict a value to a certain range.
Read more This method returns an ordering between
self and
other values if one exists.
Read more Tests less than (for
self and
other) and is used by the
< operator.
Read more Tests less than or equal to (for
self and
other) and is used by the
<= operator.
Read more Tests greater than (for
self and
other) and is used by the
>
operator.
Read more Tests greater than or equal to (for
self and
other) and is used by
the
>= operator.
Read more Source § Serialised as its policy-file name (fs.read), as in the compiled IR.
Serialize this value into the given Serde serializer.
Read more Immutably borrows from an owned value.
Read more Mutably borrows from an owned value.
Read more 🔬 This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from
self to
dest.
Read more Returns the argument unchanged.
Calls U::from(self).
That is, this conversion is whatever the implementation of
From <T> for U chooses to do.
The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning.
Read more Uses borrowed data to replace owned data, usually by cloning.
Read more Converts the given value to a
String.
Read more The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.