pub struct MetaExtension {
pub entity_type: Option<String>,
pub entity_name: Option<String>,
pub tags: HashSet<String>,
pub scope: Option<String>,
pub properties: HashMap<String, String>,
}Expand description
Host-provided operational metadata.
Carries entity identification (type + name) for route resolution, operational tags for policy group inheritance, scope for host-defined grouping, and arbitrary properties.
Immutable — set by the host before invoking the hook. Plugins can read but not modify.
Fields§
§entity_type: Option<String>Entity type: “tool”, “resource”, “prompt”, “llm”. Used by the manager for route resolution.
entity_name: Option<String>Entity name: “get_compensation”, “hr://employees/*”, etc. Used by the manager for route resolution.
Operational tags — drive policy group inheritance.
Merged with static tags from the matching route’s meta.tags.
scope: Option<String>Host-defined grouping (virtual server ID, namespace, etc.).
properties: HashMap<String, String>Arbitrary key-value metadata.
Trait Implementations§
Source§impl Clone for MetaExtension
impl Clone for MetaExtension
Source§fn clone(&self) -> MetaExtension
fn clone(&self) -> MetaExtension
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 MetaExtension
impl Debug for MetaExtension
Source§impl Default for MetaExtension
impl Default for MetaExtension
Source§fn default() -> MetaExtension
fn default() -> MetaExtension
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for MetaExtension
impl<'de> Deserialize<'de> for MetaExtension
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
Auto Trait Implementations§
impl Freeze for MetaExtension
impl RefUnwindSafe for MetaExtension
impl Send for MetaExtension
impl Sync for MetaExtension
impl Unpin for MetaExtension
impl UnsafeUnpin for MetaExtension
impl UnwindSafe for MetaExtension
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