pub enum ProjectionMode {
NotProjected,
DescriptorOnly,
ProviderToolSchema {
schema_ref: PackageSidecarRef,
},
ProducesContextItems {
allowed_kinds: Vec<String>,
},
ProjectsContextRefs {
allowed_ref_kinds: Vec<String>,
},
}Expand description
Enumerates the finite projection mode cases. Serialized names are part of the SDK contract; update fixtures when variants change.
Variants§
NotProjected
Use this variant when the contract needs to represent not projected; selecting it has no side effect by itself.
DescriptorOnly
Use this variant when the contract needs to represent descriptor only; selecting it has no side effect by itself.
ProviderToolSchema
Use this variant when the contract needs to represent provider tool schema; selecting it has no side effect by itself.
Fields
schema_ref: PackageSidecarRefTyped schema ref reference. Resolving or executing it is a separate policy-gated step.
ProducesContextItems
Use this variant when the contract needs to represent produces context items; selecting it has no side effect by itself.
Fields
ProjectsContextRefs
Use this variant when the contract needs to represent projects context refs; selecting it has no side effect by itself.
Implementations§
Source§impl ProjectionMode
impl ProjectionMode
Sourcepub fn is_projected(&self) -> bool
pub fn is_projected(&self) -> bool
Reports whether this value is projected. The check is pure and does not mutate SDK or host state.
Trait Implementations§
Source§impl Clone for ProjectionMode
impl Clone for ProjectionMode
Source§fn clone(&self) -> ProjectionMode
fn clone(&self) -> ProjectionMode
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for ProjectionMode
impl Debug for ProjectionMode
Source§impl<'de> Deserialize<'de> for ProjectionMode
impl<'de> Deserialize<'de> for ProjectionMode
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>,
impl Eq for ProjectionMode
Source§impl PartialEq for ProjectionMode
impl PartialEq for ProjectionMode
Source§fn eq(&self, other: &ProjectionMode) -> bool
fn eq(&self, other: &ProjectionMode) -> bool
self and other values to be equal, and is used by ==.