pub struct Metadata { /* private fields */ }Expand description
A convenient metadata struct that describes a crate
See metadata!
Implementations§
Source§impl Metadata
impl Metadata
Sourcepub fn new(
name: impl Into<Cow<'static, str>>,
version: impl Into<Cow<'static, str>>,
) -> Self
pub fn new( name: impl Into<Cow<'static, str>>, version: impl Into<Cow<'static, str>>, ) -> Self
See metadata!
The list of authors of the crate
Sourcepub fn homepage(self, value: impl Into<Cow<'static, str>>) -> Self
pub fn homepage(self, value: impl Into<Cow<'static, str>>) -> Self
The URL of the crate’s website
Sourcepub fn repository(self, value: impl Into<Cow<'static, str>>) -> Self
pub fn repository(self, value: impl Into<Cow<'static, str>>) -> Self
The URL of the crate’s repository
Auto Trait Implementations§
impl Freeze for Metadata
impl RefUnwindSafe for Metadata
impl Send for Metadata
impl Sync for Metadata
impl Unpin for Metadata
impl UnwindSafe for Metadata
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