pub struct FqlPattern {
pub scope: PatternSegment,
pub target: PatternSegment,
pub child_path: Option<PatternSegment>,
pub instance: Option<PatternSegment>,
}Expand description
A parsed FQL pattern for matching components and children.
§Examples
"builtin::llm" → scope=Exact("builtin"), target=Exact("llm")
"*::*" → scope=Wildcard, target=Wildcard
"builtin::llm/agent-1" → + child_path=Exact("agent-1")
"builtin::llm/*" → + child_path=WildcardFields§
§scope: PatternSegmentNamespace scope (e.g., “builtin”, “plugin”, “*”).
target: PatternSegmentComponent name (e.g., “llm”, “hil”, “*”).
child_path: Option<PatternSegment>Optional child path (e.g., “agent-1”, “*”).
instance: Option<PatternSegment>Optional instance qualifier (e.g., “primary”, “0”).
Implementations§
Trait Implementations§
Source§impl Clone for FqlPattern
impl Clone for FqlPattern
Source§fn clone(&self) -> FqlPattern
fn clone(&self) -> FqlPattern
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for FqlPattern
impl Debug for FqlPattern
Source§impl<'de> Deserialize<'de> for FqlPattern
impl<'de> Deserialize<'de> for FqlPattern
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>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Display for FqlPattern
impl Display for FqlPattern
Source§impl PartialEq for FqlPattern
impl PartialEq for FqlPattern
Source§impl Serialize for FqlPattern
impl Serialize for FqlPattern
impl Eq for FqlPattern
impl StructuralPartialEq for FqlPattern
Auto Trait Implementations§
impl Freeze for FqlPattern
impl RefUnwindSafe for FqlPattern
impl Send for FqlPattern
impl Sync for FqlPattern
impl Unpin for FqlPattern
impl UnsafeUnpin for FqlPattern
impl UnwindSafe for FqlPattern
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