mirror of
https://github.com/YGGverse/ggemini.git
synced 2026-04-01 01:25:32 +00:00
implement Request constructors, remove build methods
This commit is contained in:
parent
e2097138a9
commit
ce5d3ac4d2
5 changed files with 29 additions and 29 deletions
|
|
@ -6,13 +6,6 @@ pub struct Gemini {
|
|||
}
|
||||
|
||||
impl Gemini {
|
||||
// Constructors
|
||||
|
||||
/// Build valid new `Self`
|
||||
pub fn build(uri: Uri) -> Self {
|
||||
Self { uri } // @TODO validate
|
||||
}
|
||||
|
||||
// Getters
|
||||
|
||||
/// Copy `Self` to [Bytes](https://docs.gtk.org/glib/struct.Bytes.html)
|
||||
|
|
|
|||
|
|
@ -9,18 +9,6 @@ pub struct Titan {
|
|||
}
|
||||
|
||||
impl Titan {
|
||||
// Constructors
|
||||
|
||||
/// Build valid new `Self`
|
||||
pub fn build(uri: Uri, mime: String, token: Option<String>, data: Vec<u8>) -> Self {
|
||||
Self {
|
||||
uri,
|
||||
mime,
|
||||
token,
|
||||
data,
|
||||
} // @TODO validate
|
||||
}
|
||||
|
||||
// Getters
|
||||
|
||||
/// Copy `Self` to [Bytes](https://docs.gtk.org/glib/struct.Bytes.html)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue