pub struct Config(/* private fields */);Expand description
The project configuration.
Implementations§
Source§impl Config
impl Config
Sourcepub fn project_name(&self) -> &str
pub fn project_name(&self) -> &str
Gets the project name.
Sourcepub fn project_description(&self) -> Option<&str>
pub fn project_description(&self) -> Option<&str>
Gets the project description.
Sourcepub fn set_project_description(
&mut self,
description: impl Into<String>,
) -> &mut Self
pub fn set_project_description( &mut self, description: impl Into<String>, ) -> &mut Self
Sets the project description.
Sourcepub fn with_project_description(self, description: impl Into<String>) -> Self
pub fn with_project_description(self, description: impl Into<String>) -> Self
Builds the config with the given project description.
Sourcepub fn project_repository(&self) -> Option<RepoSpec>
pub fn project_repository(&self) -> Option<RepoSpec>
Gets the project repository.
Sourcepub fn set_project_repository(
&mut self,
repository: impl Into<RepoSpec>,
) -> &mut Self
pub fn set_project_repository( &mut self, repository: impl Into<RepoSpec>, ) -> &mut Self
Sets the project repository.
Sourcepub fn with_project_repository(self, repository: impl Into<RepoSpec>) -> Self
pub fn with_project_repository(self, repository: impl Into<RepoSpec>) -> Self
Builds the config with the given project repository.
Gets the project authors.
Sets the project authors.
Builds the config with the given project authors.
Sourcepub fn project_mut(&mut self) -> ProjectMut<'_>
pub fn project_mut(&mut self) -> ProjectMut<'_>
The mutable project section.
Trait Implementations§
impl Eq for Config
Auto Trait Implementations§
impl Freeze for Config
impl RefUnwindSafe for Config
impl Send for Config
impl Sync for Config
impl Unpin for Config
impl UnsafeUnpin for Config
impl UnwindSafe for Config
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
fn equivalent(&self, key: &K) -> bool
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
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 moreSource§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
Source§impl<Q> ToOwnedEquivalent<<Q as ToOwned>::Owned> for Q
impl<Q> ToOwnedEquivalent<<Q as ToOwned>::Owned> for Q
fn to_owned_equivalent(&self) -> <Q as ToOwned>::Owned
Source§impl<T> ToStringFallible for Twhere
T: Display,
impl<T> ToStringFallible for Twhere
T: Display,
Source§fn try_to_string(&self) -> Result<String, TryReserveError>
fn try_to_string(&self) -> Result<String, TryReserveError>
ToString::to_string, but without panic on OOM.