2024-06-09 10:21:09 +01:00
|
|
|
use derive_more::Display;
|
|
|
|
|
2024-05-11 19:46:20 +01:00
|
|
|
/// The name of a Branch
|
2024-06-09 10:21:09 +01:00
|
|
|
#[derive(Clone, Default, Debug, Hash, PartialEq, Eq, Display, PartialOrd, Ord)]
|
2024-05-12 22:27:20 +01:00
|
|
|
pub struct BranchName(String);
|
|
|
|
impl BranchName {
|
|
|
|
pub fn new(str: impl Into<String>) -> Self {
|
|
|
|
Self(str.into())
|
2024-05-11 19:46:20 +01:00
|
|
|
}
|
2024-06-07 20:01:29 +01:00
|
|
|
pub fn into_string(self) -> String {
|
|
|
|
self.0
|
|
|
|
}
|
2024-05-11 19:46:20 +01:00
|
|
|
}
|