pub trait Query {
// Required method
fn endpoint(&self) -> Cow<'static, str>;
// Provided methods
fn params(&self) -> QueryParams<'_> { ... }
fn body(&self) -> Result<Option<&'static str>, &'static str> { ... }
}Required Methods§
Provided Methods§
Sourcefn params(&self) -> QueryParams<'_>
fn params(&self) -> QueryParams<'_>
Optional. Array of key value pairs.