pub struct ContentExtension;Trait Implementations§
Source§impl Clone for ContentExtension
impl Clone for ContentExtension
Source§fn clone(&self) -> ContentExtension
fn clone(&self) -> ContentExtension
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 ContentExtension
impl Debug for ContentExtension
Source§impl Default for ContentExtension
impl Default for ContentExtension
Source§fn default() -> ContentExtension
fn default() -> ContentExtension
Returns the “default value” for a type. Read more
Source§impl Extension for ContentExtension
impl Extension for ContentExtension
fn metadata(&self) -> ExtensionMetadata
fn migration_weight(&self) -> u32
fn schemas(&self) -> Vec<SchemaDefinition>
fn dependencies(&self) -> Vec<&'static str>
fn router(&self, ctx: &dyn ExtensionContext) -> Option<ExtensionRouter>
fn router_config(&self) -> Option<ExtensionRouterConfig>
fn jobs(&self) -> Vec<Arc<dyn Job>>
fn config_prefix(&self) -> Option<&str>
fn config_schema(&self) -> Option<Value>
fn validate_config(&self, config: &Value) -> Result<(), ConfigError>
fn llm_providers(&self) -> Vec<Arc<dyn LlmProvider>>
fn tool_providers(&self) -> Vec<Arc<dyn ToolProvider>>
fn template_providers(&self) -> Vec<Arc<dyn TemplateProvider>>
fn component_renderers(&self) -> Vec<Arc<dyn ComponentRenderer>>
fn template_data_extenders(&self) -> Vec<Arc<dyn TemplateDataExtender>>
fn page_data_providers(&self) -> Vec<Arc<dyn PageDataProvider>>
fn required_storage_paths(&self) -> Vec<&'static str>
fn is_required(&self) -> bool
fn migrations(&self) -> Vec<Migration>
fn roles(&self) -> Vec<ExtensionRole>
fn priority(&self) -> u32
fn id(&self) -> &'static str
fn name(&self) -> &'static str
fn version(&self) -> &'static str
fn has_schemas(&self) -> bool
fn has_router(&self, ctx: &dyn ExtensionContext) -> bool
fn has_jobs(&self) -> bool
fn has_config(&self) -> bool
fn has_llm_providers(&self) -> bool
fn has_tool_providers(&self) -> bool
fn has_template_providers(&self) -> bool
fn has_component_renderers(&self) -> bool
fn has_template_data_extenders(&self) -> bool
fn has_page_data_providers(&self) -> bool
fn has_storage_paths(&self) -> bool
fn has_roles(&self) -> bool
fn has_migrations(&self) -> bool
fn required_assets(&self) -> Vec<AssetDefinition>
fn has_assets(&self) -> bool
impl Copy for ContentExtension
Auto Trait Implementations§
impl Freeze for ContentExtension
impl RefUnwindSafe for ContentExtension
impl Send for ContentExtension
impl Sync for ContentExtension
impl Unpin for ContentExtension
impl UnwindSafe for ContentExtension
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,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more