git-next/crates/config/src/forge_name.rs

13 lines
319 B
Rust
Raw Normal View History

use std::path::PathBuf;
/// The name of a Forge to connect to
#[derive(
Clone, Default, Debug, Hash, PartialEq, Eq, derive_more::Constructor, derive_more::Display,
)]
pub struct ForgeAlias(String);
impl From<&ForgeAlias> for PathBuf {
fn from(value: &ForgeAlias) -> Self {
Self::from(&value.0)
}
}