George-Miao / qbit

A Rust library for interacting with qBittorrent's Web API
https://docs.rs/qbit-rs
MIT License
32 stars 12 forks source link

Credentials is private #6

Closed DestinyofYeet closed 9 months ago

DestinyofYeet commented 9 months ago

After running cargo add qbit-rs and trying to use use qbit_rs::{Qbit, Credential} I get an error:

 --> src/qbit_manager.rs:4:21
   |
4  | use qbit_rs::{Qbit, Credential};
   |                     ^^^^^^^^^^ private struct
   |
note: the struct `Credential` is defined here
  --> /cargo/registry/src/index.crates.io-6f17d22bba15001f/qbit-rs-0.3.7/src/lib.rs:26:21
   |
26 | use crate::{ext::*, model::*};
   |                     ^^^^^

Any ideas?

George-Miao commented 9 months ago

Try use qbit_rs::model::Credential.

DestinyofYeet commented 9 months ago

Seems to have done it, thanks :D