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
#[cfg(feature = "json")]
mod json;
#[cfg(feature = "parse")]
mod parse;
#[cfg(feature = "print")]
mod print;
pub const NAME: &str = "mj-breakpoint";
#[derive(Debug, Default)]
#[cfg_attr(feature = "json", derive(serde::Serialize, serde::Deserialize))]
struct MJBreakpointAttributes {
width: String,
}
#[derive(Debug, Default)]
pub struct MJBreakpoint {
attributes: MJBreakpointAttributes,
}
impl MJBreakpoint {
pub fn value(&self) -> &str {
&self.attributes.width
}
}