mirror of
https://github.com/MingweiSamuel/Riven.git
synced 2024-12-26 10:56:34 +00:00
move dtos to 'models' module
This commit is contained in:
parent
f2e70246bf
commit
de8cd21e94
8 changed files with 13 additions and 9 deletions
|
@ -9,10 +9,9 @@
|
|||
// http://www.mingweisamuel.com/riotapi-schema/tool/
|
||||
// Version 3bd5ca30e5a7aa15963ca4366e3b6be89defe567
|
||||
|
||||
//! Automatically generated endpoint handles and data transfer structs.
|
||||
//! Automatically generated endpoint handles.
|
||||
|
||||
mod dto;
|
||||
pub use dto::*;
|
||||
use crate::models::*;
|
||||
|
||||
use std::future::Future;
|
||||
use std::vec::Vec;
|
||||
|
|
|
@ -11,6 +11,8 @@ pub mod endpoints;
|
|||
mod error;
|
||||
pub use error::*;
|
||||
|
||||
pub mod models;
|
||||
|
||||
mod req;
|
||||
|
||||
mod riot_api;
|
||||
|
|
|
@ -9,6 +9,8 @@
|
|||
// http://www.mingweisamuel.com/riotapi-schema/tool/
|
||||
// Version 3bd5ca30e5a7aa15963ca4366e3b6be89defe567
|
||||
|
||||
//! Automatically generated data transfer structs.
|
||||
|
||||
/// ChampionMasteryV4 data objects. This module is automatically generated.
|
||||
#[allow(dead_code)]
|
||||
pub mod champion_mastery_v4 {
|
|
@ -6,10 +6,9 @@
|
|||
// http://www.mingweisamuel.com/riotapi-schema/tool/
|
||||
// Version {{= spec.info.version }}
|
||||
|
||||
//! Automatically generated endpoint handles and data transfer structs.
|
||||
//! Automatically generated endpoint handles.
|
||||
|
||||
mod dto;
|
||||
pub use dto::*;
|
||||
use crate::models::*;
|
||||
|
||||
use std::future::Future;
|
||||
use std::vec::Vec;
|
||||
|
|
|
@ -6,6 +6,8 @@
|
|||
// http://www.mingweisamuel.com/riotapi-schema/tool/
|
||||
// Version {{= spec.info.version }}
|
||||
|
||||
//! Automatically generated data transfer structs.
|
||||
|
||||
{{
|
||||
let schemas = spec.components.schemas;
|
||||
let schemaKeyByEndpoint = Object.keys(schemas)
|
|
@ -10,7 +10,7 @@ use futures_util::future;
|
|||
use colored::*;
|
||||
|
||||
use riven::consts::*;
|
||||
use riven::endpoints::summoner_v4::Summoner;
|
||||
use riven::models::summoner_v4::Summoner;
|
||||
|
||||
const REGION: Region = Region::KR;
|
||||
|
||||
|
|
|
@ -8,7 +8,7 @@ use testutils::*;
|
|||
use colored::*;
|
||||
|
||||
use riven::consts::*;
|
||||
use riven::endpoints::summoner_v4::*;
|
||||
use riven::models::summoner_v4::*;
|
||||
|
||||
|
||||
fn validate_lugnutsk(s: Summoner, tag: &str) -> Result<(), String> {
|
||||
|
|
|
@ -8,7 +8,7 @@ use testutils::{ RIOT_API, future_start };
|
|||
use colored::*;
|
||||
|
||||
use riven::consts::*;
|
||||
use riven::endpoints::summoner_v4::Summoner;
|
||||
use riven::models::summoner_v4::Summoner;
|
||||
|
||||
const REGION: Region = Region::TR;
|
||||
|
||||
|
|
Loading…
Reference in a new issue