pub struct ModuleInfo {
pub version: Option<ModuleVersion>,
pub author: Option<String>,
pub license: Option<String>,
pub description: Option<String>,
}Expand description
Extended metadata for a module.
Fields§
§version: Option<ModuleVersion>The module’s semantic version.
Author or maintainer.
license: Option<String>License identifier (e.g. “MIT”).
description: Option<String>Short description.
Implementations§
Source§impl ModuleInfo
impl ModuleInfo
Sourcepub fn with_version(self, v: ModuleVersion) -> Self
pub fn with_version(self, v: ModuleVersion) -> Self
Attach a version.
Attach an author.
Sourcepub fn with_license(self, l: impl Into<String>) -> Self
pub fn with_license(self, l: impl Into<String>) -> Self
Attach a license.
Sourcepub fn with_description(self, d: impl Into<String>) -> Self
pub fn with_description(self, d: impl Into<String>) -> Self
Attach a description.
Trait Implementations§
Source§impl Clone for ModuleInfo
impl Clone for ModuleInfo
Source§fn clone(&self) -> ModuleInfo
fn clone(&self) -> ModuleInfo
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 ModuleInfo
impl Debug for ModuleInfo
Source§impl Default for ModuleInfo
impl Default for ModuleInfo
Source§fn default() -> ModuleInfo
fn default() -> ModuleInfo
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for ModuleInfo
impl RefUnwindSafe for ModuleInfo
impl Send for ModuleInfo
impl Sync for ModuleInfo
impl Unpin for ModuleInfo
impl UnsafeUnpin for ModuleInfo
impl UnwindSafe for ModuleInfo
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