pub struct EndpointParams { /* private fields */ }Implementations§
Source§impl EndpointParams
impl EndpointParams
Sourcepub fn new() -> Self
pub fn new() -> Self
Examples found in repository?
examples/current_summoner.rs (line 9)
4async fn main() -> rusty_lcu::Result<()> {
5 let mut client = LcuClient::new()?;
6 client.connect().await?;
7
8 let summoner =
9 generated::get_lol_summoner_v1_current_summoner_typed(&client, EndpointParams::new())
10 .await?;
11
12 println!(
13 "{}#{} is level {}",
14 summoner.game_name, summoner.tag_line, summoner.summoner_level
15 );
16
17 Ok(())
18}pub fn path(self, name: impl Into<String>, value: impl ToString) -> Self
pub fn query(self, name: impl Into<String>, value: impl ToString) -> Self
pub fn body(self, value: impl Serialize) -> Result<Self>
pub fn request_options(self, options: RequestOptions) -> Self
Trait Implementations§
Source§impl Clone for EndpointParams
impl Clone for EndpointParams
Source§fn clone(&self) -> EndpointParams
fn clone(&self) -> EndpointParams
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for EndpointParams
impl Debug for EndpointParams
Source§impl Default for EndpointParams
impl Default for EndpointParams
Source§fn default() -> EndpointParams
fn default() -> EndpointParams
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for EndpointParams
impl RefUnwindSafe for EndpointParams
impl Send for EndpointParams
impl Sync for EndpointParams
impl Unpin for EndpointParams
impl UnsafeUnpin for EndpointParams
impl UnwindSafe for EndpointParams
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more