1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
use std::fmt::Display;
use tap::Pipe;
use crate::parser::{Description, Error};
#[derive(Debug)]
pub struct LinkStoryboards {
pub description: Description,
}
impl LinkStoryboards {
pub fn new(line: String) -> Result<Self, Error> {
Self {
description: Description::from_line(line)?,
}
.pipe(Ok)
}
}
impl Display for LinkStoryboards {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "{} Linking `Storyboards`", self.description)
}
}