pub enum FenceKind {
Show 17 variants
Adapter,
Memory,
Policy,
Injection,
Provider,
Cache,
Trajectory,
Agent,
Intent,
Tool,
Rag,
Json,
Xml,
Constraints,
Tools,
Manifest,
Flow,
}Expand description
Supported fence block types (single source of truth)
Variants§
Adapter
Memory
Policy
Injection
Provider
Cache
Trajectory
Agent
Intent
Tool
Rag
Json
Xml
Constraints
Tools
Manifest
Flow
Trait Implementations§
Source§impl Display for FenceKind
impl Display for FenceKind
Source§fn fmt(&self, f: &mut Formatter<'_>) -> Result
fn fmt(&self, f: &mut Formatter<'_>) -> Result
Formats the FenceKind as its lowercase string representation.
§Examples
use cellstate_pipeline::pack::FenceKind;
assert_eq!(format!("{}", FenceKind::Adapter), "adapter");
assert_eq!(format!("{}", FenceKind::Json), "json");
assert_eq!(format!("{}", FenceKind::Constraints), "constraints");Source§impl FromStr for FenceKind
impl FromStr for FenceKind
Source§fn from_str(s: &str) -> Result<Self, Self::Err>
fn from_str(s: &str) -> Result<Self, Self::Err>
Parses a fence kind identifier into a FenceKind.
Matching is case-insensitive. Recognized identifiers: "adapter", "memory", "policy",
"injection", "provider", "cache", "trajectory", "agent", "tool", "rag",
"json", "xml", "constraints", "tools", and "manifest".
§Returns
Ok(FenceKind) for a recognized identifier, Err(PackError::Validation) for unsupported input.
§Examples
use std::str::FromStr;
use cellstate_pipeline::pack::FenceKind;
let k = FenceKind::from_str("tool").unwrap();
assert_eq!(k, FenceKind::Tool);impl Copy for FenceKind
impl Eq for FenceKind
impl StructuralPartialEq for FenceKind
Auto Trait Implementations§
impl Freeze for FenceKind
impl RefUnwindSafe for FenceKind
impl Send for FenceKind
impl Sync for FenceKind
impl Unpin for FenceKind
impl UnwindSafe for FenceKind
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.