Skip to content

Commit 8c016bc

Browse files
rename: endpoints -> clients
1 parent 1367931 commit 8c016bc

File tree

10 files changed

+13
-13
lines changed

10 files changed

+13
-13
lines changed

src/auth_code.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
use crate::{
22
auth_urls,
3-
endpoints::{BaseClient, OAuthClient},
3+
clients::{BaseClient, OAuthClient},
44
headers,
55
http::{Form, HttpClient},
66
ClientResult, Config, Credentials, OAuth, Token,

src/auth_code_pkce.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
use crate::{
22
auth_urls,
3-
endpoints::{BaseClient, OAuthClient},
3+
clients::{BaseClient, OAuthClient},
44
headers,
55
http::{Form, HttpClient},
66
ClientResult, Config, Credentials, OAuth, Token,

src/client_creds.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
use crate::{
2-
endpoints::BaseClient,
2+
clients::BaseClient,
33
headers,
44
http::{Form, HttpClient},
55
ClientResult, Config, Credentials, Token,
@@ -15,7 +15,7 @@ use maybe_async::maybe_async;
1515
///
1616
/// Note: This flow does not include authorization and therefore cannot be used
1717
/// to access or to manage the endpoints related to user private data in
18-
/// [`OAuthClient`](crate::endpoints::OAuthClient).
18+
/// [`OAuthClient`](crate::clients::OAuthClient).
1919
///
2020
/// [reference]: https://developer.spotify.com/documentation/general/guides/authorization-guide/#client-credentials-flow
2121
/// [example-main]: https://github.com/ramsayleung/rspotify/blob/master/examples/client_creds.rs

src/endpoints/base.rs renamed to src/clients/base.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
use crate::{
22
auth_urls,
3-
endpoints::{
3+
clients::{
44
basic_auth, bearer_auth, convert_result, join_ids,
55
pagination::{paginate, Paginator},
66
},
File renamed without changes.

src/endpoints/oauth.rs renamed to src/clients/oauth.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
use crate::{
2-
endpoints::{
2+
clients::{
33
append_device_id, convert_result, join_ids,
44
pagination::{paginate, Paginator},
55
BaseClient,
@@ -22,9 +22,9 @@ use url::Url;
2222
/// authorization, including some parts of the authentication flow that are
2323
/// shared, and the endpoints.
2424
///
25-
/// Note that the base trait [`BaseClient`](crate::endpoints::BaseClient) may
25+
/// Note that the base trait [`BaseClient`](crate::clients::BaseClient) may
2626
/// have endpoints that conditionally require authorization like
27-
/// [`user_playlist`](crate::endpoints::BaseClient::user_playlist). This trait
27+
/// [`user_playlist`](crate::clients::BaseClient::user_playlist). This trait
2828
/// only separates endpoints that *always* need authorization from the base
2929
/// ones.
3030
#[maybe_async(?Send)]
File renamed without changes.
File renamed without changes.
File renamed without changes.

src/lib.rs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -83,8 +83,8 @@
8383
//!
8484
//! Rspotify has a different client for each of the available authentication
8585
//! flows. They may implement the endpoints in
86-
//! [`BaseClient`](crate::endpoints::BaseClient) or
87-
//! [`OAuthClient`](crate::endpoints::OAuthClient) according to what kind of
86+
//! [`BaseClient`](crate::clients::BaseClient) or
87+
//! [`OAuthClient`](crate::clients::OAuthClient) according to what kind of
8888
//! flow it is. Please refer to their documentation for more details:
8989
//!
9090
//! * [Client Credentials Flow](spotify-client-creds): see
@@ -125,7 +125,7 @@
125125
pub mod client_creds;
126126
pub mod auth_code;
127127
pub mod auth_code_pkce;
128-
pub mod endpoints;
128+
pub mod clients;
129129

130130
// Subcrate re-exports
131131
pub use rspotify_http as http;
@@ -151,7 +151,7 @@ use serde::{Deserialize, Serialize};
151151
use thiserror::Error;
152152

153153
pub mod prelude {
154-
pub use crate::endpoints::{BaseClient, OAuthClient};
154+
pub use crate::clients::{BaseClient, OAuthClient};
155155
}
156156

157157
pub(in crate) mod headers {
@@ -219,7 +219,7 @@ pub struct Config {
219219
pub cache_path: PathBuf,
220220

221221
/// The pagination chunk size used when performing automatically paginated
222-
/// requests, like [`artist_albums`](crate::endpoints::BaseClient). This
222+
/// requests, like [`artist_albums`](crate::clients::BaseClient). This
223223
/// means that a request will be performed every `pagination_chunks` items.
224224
/// By default this is [`DEFAULT_PAGINATION_CHUNKS`].
225225
///

0 commit comments

Comments
 (0)