11 lines
268 B
Rust
11 lines
268 B
Rust
|
use std::fmt::{Display, Formatter};
|
||
|
|
||
|
/// The hostname of a forge
|
||
|
#[derive(Clone, Debug, PartialEq, Eq)]
|
||
|
pub struct Hostname(pub String);
|
||
|
impl Display for Hostname {
|
||
|
fn fmt(&self, f: &mut Formatter<'_>) -> std::fmt::Result {
|
||
|
write!(f, "{}", self.0)
|
||
|
}
|
||
|
}
|