pub enum EgressScope {
LocalOnly,
OrgTenant,
ThirdPartyIndex,
ThirdPartyModel,
Custom(String),
}Expand description
Where a provider’s served content may go. A closed base vocabulary of four
classes plus namespaced custom extensions (docs/context-reuse.md §3).
Serializes to a flat string — the base classes to their canonical kebab-case
names, a Custom to its namespaced string — so the wire form
is a plain enum-of-strings any language can produce.
Variants§
LocalOnly
Nothing leaves the machine. The only scope compatible with
data_flow.egress == false.
OrgTenant
Leaves the machine but stays inside the organization’s own infrastructure.
ThirdPartyIndex
Content sent to an external index / embedding service.
ThirdPartyModel
Content sent to an external model API.
Custom(String)
A namespaced custom scope, e.g. acme:vector-store. MUST contain a
namespace separator : with non-empty sides so it can never collide
with the base vocabulary — see is_valid.
Implementations§
Source§impl EgressScope
impl EgressScope
Sourcepub fn is_off_machine(&self) -> bool
pub fn is_off_machine(&self) -> bool
Whether content under this scope leaves the machine. Everything except
LocalOnly is off-machine, including any custom
scope — the conservative default is that an unrecognized destination
leaves, so a host never under-gates a custom scope.
Sourcepub fn is_valid(&self) -> bool
pub fn is_valid(&self) -> bool
Whether this scope is well-formed. Base classes are always valid; a
Custom scope MUST be namespaced — exactly one purpose
of the : separator is guaranteeing it cannot be spelled as a bare base
name. Valid iff it contains a : with a non-empty namespace and a
non-empty name.
Trait Implementations§
Source§impl Clone for EgressScope
impl Clone for EgressScope
Source§fn clone(&self) -> EgressScope
fn clone(&self) -> EgressScope
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more