pub struct PluginHandlerBuilder<A: PluginApp, S: State = Empty> { /* private fields */ }
Expand description
Use builder syntax to set the inputs and finish with build()
.
Implementations§
Source§impl<A: PluginApp, S: State> PluginHandlerBuilder<A, S>
impl<A: PluginApp, S: State> PluginHandlerBuilder<A, S>
Sourcepub fn build(self) -> PluginHandler<A>where
S: IsComplete,
pub fn build(self) -> PluginHandler<A>where
S: IsComplete,
Finish building and return the requested object
Sourcepub fn name(self, x: impl Into<String>) -> PluginHandlerBuilder<A, SetName<S>>where
S::Name: IsUnset,
pub fn name(self, x: impl Into<String>) -> PluginHandlerBuilder<A, SetName<S>>where
S::Name: IsUnset,
Sourcepub fn maybe_name(
self,
value: Option<impl Into<String>>,
) -> PluginHandlerBuilder<A, SetName<S>>where
S::Name: IsUnset,
pub fn maybe_name(
self,
value: Option<impl Into<String>>,
) -> PluginHandlerBuilder<A, SetName<S>>where
S::Name: IsUnset,
Sourcepub fn description(
self,
x: impl Into<String>,
) -> PluginHandlerBuilder<A, SetDescription<S>>where
S::Description: IsUnset,
pub fn description(
self,
x: impl Into<String>,
) -> PluginHandlerBuilder<A, SetDescription<S>>where
S::Description: IsUnset,
Sourcepub fn maybe_description(
self,
value: Option<impl Into<String>>,
) -> PluginHandlerBuilder<A, SetDescription<S>>where
S::Description: IsUnset,
pub fn maybe_description(
self,
value: Option<impl Into<String>>,
) -> PluginHandlerBuilder<A, SetDescription<S>>where
S::Description: IsUnset,
Sourcepub fn version(
self,
x: impl Into<String>,
) -> PluginHandlerBuilder<A, SetVersion<S>>where
S::Version: IsUnset,
pub fn version(
self,
x: impl Into<String>,
) -> PluginHandlerBuilder<A, SetVersion<S>>where
S::Version: IsUnset,
Sourcepub fn maybe_version(
self,
value: Option<impl Into<String>>,
) -> PluginHandlerBuilder<A, SetVersion<S>>where
S::Version: IsUnset,
pub fn maybe_version(
self,
value: Option<impl Into<String>>,
) -> PluginHandlerBuilder<A, SetVersion<S>>where
S::Version: IsUnset,
Sourcepub fn link(self, x: impl Into<String>) -> PluginHandlerBuilder<A, SetLink<S>>where
S::Link: IsUnset,
pub fn link(self, x: impl Into<String>) -> PluginHandlerBuilder<A, SetLink<S>>where
S::Link: IsUnset,
Sourcepub fn maybe_link(
self,
value: Option<impl Into<String>>,
) -> PluginHandlerBuilder<A, SetLink<S>>where
S::Link: IsUnset,
pub fn maybe_link(
self,
value: Option<impl Into<String>>,
) -> PluginHandlerBuilder<A, SetLink<S>>where
S::Link: IsUnset,
Sourcepub fn options_pages(
self,
value: Vec<OptionsPage<A>>,
) -> PluginHandlerBuilder<A, SetOptionsPages<S>>where
S::OptionsPages: IsUnset,
pub fn options_pages(
self,
value: Vec<OptionsPage<A>>,
) -> PluginHandlerBuilder<A, SetOptionsPages<S>>where
S::OptionsPages: IsUnset,
Sourcepub fn maybe_options_pages(
self,
value: Option<Vec<OptionsPage<A>>>,
) -> PluginHandlerBuilder<A, SetOptionsPages<S>>where
S::OptionsPages: IsUnset,
pub fn maybe_options_pages(
self,
value: Option<Vec<OptionsPage<A>>>,
) -> PluginHandlerBuilder<A, SetOptionsPages<S>>where
S::OptionsPages: IsUnset,
Auto Trait Implementations§
impl<A, S> Freeze for PluginHandlerBuilder<A, S>
impl<A, S = Empty> !RefUnwindSafe for PluginHandlerBuilder<A, S>
impl<A, S = Empty> !Send for PluginHandlerBuilder<A, S>
impl<A, S = Empty> !Sync for PluginHandlerBuilder<A, S>
impl<A, S> Unpin for PluginHandlerBuilder<A, S>
impl<A, S = Empty> !UnwindSafe for PluginHandlerBuilder<A, S>
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> 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