Move low-level models to raw module

This commit is contained in:
Koen Bolhuis 2021-01-19 23:41:54 +01:00
parent 83fa18e048
commit a22fcff2bf
7 changed files with 5 additions and 5 deletions

View File

@ -1,4 +1,4 @@
use listenbrainz::models::request::DeleteListen;
use listenbrainz::raw::request::DeleteListen;
use listenbrainz::Client;
fn main() {

View File

@ -1,6 +1,6 @@
use std::time::{SystemTime, UNIX_EPOCH};
use listenbrainz::models::request::{ListenType, Payload, SubmitListens, TrackMetadata};
use listenbrainz::raw::request::{ListenType, Payload, SubmitListens, TrackMetadata};
use listenbrainz::Client;
fn now() -> i64 {

View File

@ -4,8 +4,8 @@ use serde::Serialize;
use ureq::Agent;
use crate::endpoint::Endpoint;
use crate::models::request::*;
use crate::models::response::*;
use crate::raw::request::*;
use crate::raw::response::*;
use crate::Error;
const API_ROOT_URL: &str = "https://api.listenbrainz.org/1/";

View File

@ -3,7 +3,7 @@
mod client;
mod endpoint;
mod error;
pub mod models;
pub mod raw;
pub use crate::client::Client;
pub use crate::error::Error;