draft new api version

This commit is contained in:
yggverse 2024-11-27 05:50:09 +02:00
parent 67d486cc4d
commit 3a9e84a3d9
19 changed files with 490 additions and 87 deletions

View file

@ -12,7 +12,7 @@ use glib::GString;
/// * placeholder text for 10, 11 status
/// * URL string for 30, 31 status
pub struct Data {
value: GString,
pub value: GString,
}
impl Data {
@ -52,16 +52,10 @@ impl Data {
false => Some(Self { value }),
true => None,
}),
Err(_) => Err(Error::Decode),
Err(reason) => Err(Error::Decode(reason)),
}
}
None => Err(Error::Protocol),
}
}
// Getters
pub fn value(&self) -> &GString {
&self.value
}
}