pub struct DeferredDeclarations {
pub tools: Vec<DeclaredExtensionTool>,
pub providers: Vec<DeclaredExtensionProvider>,
pub lifecycle: Option<DeferredLifecycle>,
pub context_providers: Value,
}Expand description
OPTIONAL additive manifest block. Absent => legacy eager lifecycle.
Fields§
§tools: Vec<DeclaredExtensionTool>EXACT tools the extension will register at initialize.
providers: Vec<DeclaredExtensionProvider>TYPED RegisteredProviderSpec-compatible provider metadata,
deeply bounded/validated here so malformed passive metadata can
never reach provider routing later.
lifecycle: Option<DeferredLifecycle>Optional lifecycle hint for extensions without tools/providers.
context_providers: ValueAccepted and ignored. Built-in automatic memory, which this declared
a provider for, was removed; the key stays so a manifest written for
it still loads. Whatever JSON it holds is neither validated nor read:
it cannot fail a load, classify the extension or grant anything
(see ignored_context_provider_notice).
Trait Implementations§
Source§impl Clone for DeferredDeclarations
impl Clone for DeferredDeclarations
Source§impl Debug for DeferredDeclarations
impl Debug for DeferredDeclarations
Source§impl Default for DeferredDeclarations
impl Default for DeferredDeclarations
Source§impl<'de> Deserialize<'de> for DeferredDeclarations
impl<'de> Deserialize<'de> for DeferredDeclarations
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 Forget for DeferredDeclarations
impl Freeze for DeferredDeclarations
impl Move for DeferredDeclarations
impl RefUnwindSafe for DeferredDeclarations
impl Send for DeferredDeclarations
impl Sync for DeferredDeclarations
impl Unpin for DeferredDeclarations
impl UnsafeUnpin for DeferredDeclarations
impl UnwindSafe for DeferredDeclarations
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<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Convert
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Convert
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Convert
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.