Initial
This commit is contained in:
1042
navidrome/Cargo.lock
generated
Normal file
1042
navidrome/Cargo.lock
generated
Normal file
File diff suppressed because it is too large
Load Diff
8
navidrome/Cargo.toml
Normal file
8
navidrome/Cargo.toml
Normal file
@ -0,0 +1,8 @@
|
||||
[package]
|
||||
name = "navidrome"
|
||||
version = "0.1.0"
|
||||
edition = "2021"
|
||||
|
||||
[dependencies]
|
||||
reqwest = "0.11.18"
|
||||
serde = { version = "1.0.183", features = ["derive"] }
|
0
navidrome/src/client/builder.rs
Normal file
0
navidrome/src/client/builder.rs
Normal file
13
navidrome/src/client/mod.rs
Normal file
13
navidrome/src/client/mod.rs
Normal file
@ -0,0 +1,13 @@
|
||||
|
||||
pub struct Client {
|
||||
base: String,
|
||||
http: reqwest::Client,
|
||||
}
|
||||
|
||||
|
||||
|
||||
impl Client {
|
||||
fn playlists() {
|
||||
const
|
||||
}
|
||||
}
|
2
navidrome/src/lib.rs
Normal file
2
navidrome/src/lib.rs
Normal file
@ -0,0 +1,2 @@
|
||||
pub mod models;
|
||||
pub mod client;
|
15
navidrome/src/models.rs
Normal file
15
navidrome/src/models.rs
Normal file
@ -0,0 +1,15 @@
|
||||
use serde::Deserialize;
|
||||
|
||||
#[derive(Deserialize)]
|
||||
struct LoginResponse {
|
||||
id: String, // todo should be a uuid
|
||||
#[serde(rename = "isAdmin")]
|
||||
is_admin: bool,
|
||||
name: String,
|
||||
#[serde(rename = "subsonicSalt")]
|
||||
subsonic_salt: String,
|
||||
#[serde(rename = "subsonicToken")]
|
||||
subsonic_token: String,
|
||||
token: String,
|
||||
username: String,
|
||||
}
|
Reference in New Issue
Block a user