pub struct ForgeDetails { /* private fields */ }
Expand description
The derived information about a Forge, used to create interactions with it
Implementations§
Source§impl ForgeDetails
impl ForgeDetails
pub const fn new( forge_alias: ForgeAlias, forge_type: ForgeType, hostname: Hostname, user: User, token: ApiToken, max_dev_commits: Option<CommitCount>, ) -> ForgeDetails
Source§impl ForgeDetails
impl ForgeDetails
pub fn with_forge_alias(self, forge_alias: impl Into<ForgeAlias>) -> Self
pub fn with_forge_type(self, forge_type: impl Into<ForgeType>) -> Self
pub fn with_hostname(self, hostname: impl Into<Hostname>) -> Self
pub fn with_user(self, user: impl Into<User>) -> Self
pub fn with_token(self, token: impl Into<ApiToken>) -> Self
pub fn with_max_dev_commits( self, max_dev_commits: impl Into<Option<CommitCount>>, ) -> Self
Source§impl ForgeDetails
impl ForgeDetails
pub const fn forge_alias(&self) -> &ForgeAlias
pub const fn forge_type(&self) -> ForgeType
pub const fn hostname(&self) -> &Hostname
pub const fn token(&self) -> &ApiToken
pub const fn max_dev_commits(&self) -> Option<&CommitCount>
Trait Implementations§
Source§impl Clone for ForgeDetails
impl Clone for ForgeDetails
Source§fn clone(&self) -> ForgeDetails
fn clone(&self) -> ForgeDetails
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for ForgeDetails
impl Debug for ForgeDetails
Source§impl Default for ForgeDetails
impl Default for ForgeDetails
Source§fn default() -> ForgeDetails
fn default() -> ForgeDetails
Returns the “default value” for a type. Read more
Source§impl From<(&ForgeAlias, &ForgeConfig)> for ForgeDetails
impl From<(&ForgeAlias, &ForgeConfig)> for ForgeDetails
Source§fn from((forge_alias, forge_config): (&ForgeAlias, &ForgeConfig)) -> Self
fn from((forge_alias, forge_config): (&ForgeAlias, &ForgeConfig)) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for ForgeDetails
impl RefUnwindSafe for ForgeDetails
impl Send for ForgeDetails
impl Sync for ForgeDetails
impl Unpin for ForgeDetails
impl UnwindSafe for ForgeDetails
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