pub struct Builder { /* private fields */ }Expand description
Collects the static extensions that form one executable application.
Implementations§
Source§impl Builder
impl Builder
pub fn new() -> Self
Sourcepub fn with_core_extension<E>(self, extension: E) -> Selfwhere
E: KnowledgeBaseExtension + 'static,
pub fn with_core_extension<E>(self, extension: E) -> Selfwhere
E: KnowledgeBaseExtension + 'static,
Adds an extension that does not expose CLI commands.
Sourcepub fn with_extension<E>(self, extension: E) -> Selfwhere
E: KnowledgeBaseCliExtension + 'static,
pub fn with_extension<E>(self, extension: E) -> Selfwhere
E: KnowledgeBaseCliExtension + 'static,
Adds one extension object with its core contract and CLI capability.
pub fn build(self) -> Result<Application, BuildError>
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for Builder
impl !UnwindSafe for Builder
impl Freeze for Builder
impl Send for Builder
impl Sync for Builder
impl Unpin for Builder
impl UnsafeUnpin for Builder
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