pub struct Package<'a>(/* private fields */);Expand description
The package table.
Implementations§
Source§impl<'a> Package<'a>
impl<'a> Package<'a>
Sourcepub fn description(&self) -> Option<&'a str>
pub fn description(&self) -> Option<&'a str>
Gets the package description.
Sourcepub fn version(&self) -> Version
pub fn version(&self) -> Version
Gets the package version.
This adheres to the manifest format reference and defaults to
0.0.0 if the version field has not been set.
Sourcepub fn repository(&self) -> Option<Url>
pub fn repository(&self) -> Option<Url>
Gets the package repository.
Gets the package authors.
Auto Trait Implementations§
impl<'a> !RefUnwindSafe for Package<'a>
impl<'a> !Send for Package<'a>
impl<'a> !Sync for Package<'a>
impl<'a> !UnwindSafe for Package<'a>
impl<'a> Freeze for Package<'a>
impl<'a> Unpin for Package<'a>
impl<'a> UnsafeUnpin for Package<'a>
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
impl<T> ErasedDestructor for Twhere
T: 'static,
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