summaryrefslogtreecommitdiffstats
path: root/librepology/src/v1/types/summary.rs
blob: 494e671e481389a98a562533b3c0477a6b1b9383 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
use std::ops::Deref;

// one-line description of the package
#[derive(Eq, PartialEq, Ord, PartialOrd, Clone, Debug, Serialize, Deserialize)]
pub struct Summary(String);

impl Deref for Summary {
    type Target = String;

    fn deref(&self) -> &Self::Target {
        &self.0
    }
}