mirror of
https://github.com/YGGverse/ggemini.git
synced 2026-03-31 17:15:31 +00:00
draft new api version
This commit is contained in:
parent
67d486cc4d
commit
3a9e84a3d9
19 changed files with 490 additions and 87 deletions
|
|
@ -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
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue