Skip to main content

OwnedExtensions

Struct OwnedExtensions 

Source
pub struct OwnedExtensions {
Show 16 fields pub request: Option<Arc<RequestExtension>>, pub agent: Option<Arc<AgentExtension>>, pub mcp: Option<Arc<MCPExtension>>, pub completion: Option<Arc<CompletionExtension>>, pub provenance: Option<Arc<ProvenanceExtension>>, pub llm: Option<Arc<LLMExtension>>, pub framework: Option<Arc<FrameworkExtension>>, pub meta: Option<Arc<MetaExtension>>, pub raw_credentials: Option<Arc<RawCredentialsExtension>>, pub http: Option<Guarded<HttpExtension>>, pub security: Option<SecurityExtension>, pub delegation: Option<DelegationExtension>, pub custom: Option<HashMap<String, Value>>, pub http_write_token: Option<WriteToken>, pub labels_write_token: Option<WriteToken>, pub delegation_write_token: Option<WriteToken>,
}
Expand description

Owned copy of extensions for plugin modification.

Returned by Extensions::cow_copy(). Immutable slots share the same Arc pointers as the original (zero copy). Mutable, monotonic, and guarded slots are cloned into owned values that the plugin can modify directly.

Plugins return this in PluginResult::modify_extensions(). The executor validates (immutable unchanged, monotonic superset) and merges back into the pipeline’s Extensions.

Hosts never see this type — the executor converts to Extensions before building PipelineResult.

Fields§

§request: Option<Arc<RequestExtension>>§agent: Option<Arc<AgentExtension>>§mcp: Option<Arc<MCPExtension>>§completion: Option<Arc<CompletionExtension>>§provenance: Option<Arc<ProvenanceExtension>>§llm: Option<Arc<LLMExtension>>§framework: Option<Arc<FrameworkExtension>>§meta: Option<Arc<MetaExtension>>§raw_credentials: Option<Arc<RawCredentialsExtension>>

Raw credentials are shared by Arc here too — write tokens for inbound_tokens and delegated_tokens mutation paths land in slice 2 (IdentityResolve) and slice 3 (TokenDelegate). Until then, no plugin writes through OwnedExtensions.raw_credentials.

§http: Option<Guarded<HttpExtension>>§security: Option<SecurityExtension>§delegation: Option<DelegationExtension>§custom: Option<HashMap<String, Value>>§http_write_token: Option<WriteToken>§labels_write_token: Option<WriteToken>§delegation_write_token: Option<WriteToken>

Trait Implementations§

Source§

impl Debug for OwnedExtensions

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more