pub struct ModuleDetailsBuilder { /* private fields */ }
Implementations§
Source§impl ModuleDetailsBuilder
impl ModuleDetailsBuilder
pub fn new() -> Self
pub const fn module_name(self, module_name: &'static str) -> Self
pub const fn version(self, version: &'static str) -> Self
pub fn config(self, config: Option<Config>) -> Self
pub fn capabilities(self, capabilities: HashMap<String, String>) -> Self
pub fn build(self) -> ModuleDetails
Trait Implementations§
Source§impl Default for ModuleDetailsBuilder
impl Default for ModuleDetailsBuilder
Source§fn default() -> ModuleDetailsBuilder
fn default() -> ModuleDetailsBuilder
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for ModuleDetailsBuilder
impl RefUnwindSafe for ModuleDetailsBuilder
impl Send for ModuleDetailsBuilder
impl Sync for ModuleDetailsBuilder
impl Unpin for ModuleDetailsBuilder
impl UnwindSafe for ModuleDetailsBuilder
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> 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