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

11 lines
303 B
Rust
Raw Normal View History

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