32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
|
pub url: String,
pub iv_hash: Option<String>,
pub url_re: Option<String>,
}
impl fmt::Display for List {
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> std::result::Result<(), fmt::Error> {
write!(f, "#{} \\*ļøā£ `{}` {}\nš `{}`", self.source_id, self.channel,
match self.enabled {
true => "š enabled",
false => "ā disabled",
}, self.url)?;
if let Some(iv_hash) = &self.iv_hash {
write!(f, "\nIV: `{iv_hash}`")?;
}
|
|
|
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
|
pub url: String,
pub iv_hash: Option<String>,
pub url_re: Option<String>,
}
impl fmt::Display for List {
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> std::result::Result<(), fmt::Error> {
write!(f, "\\#feed\\_{} \\*ļøā£ `{}` {}\nš `{}`", self.source_id, self.channel,
match self.enabled {
true => "š enabled",
false => "ā disabled",
}, self.url)?;
if let Some(iv_hash) = &self.iv_hash {
write!(f, "\nIV: `{iv_hash}`")?;
}
|