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

9 lines
232 B
Rust
Raw Normal View History

/// The name of a Branch
#[derive(Clone, Default, Debug, Hash, PartialEq, Eq, derive_more::Display)]
pub struct BranchName(String);
impl BranchName {
pub fn new(str: impl Into<String>) -> Self {
Self(str.into())
}
}