Struct mangadex_api::v5::user::UserBuilder
source · [−]pub struct UserBuilder {
http_client: HttpClientRef,
}
Expand description
User endpoint handler builder.
Fields
http_client: HttpClientRef
Implementations
sourceimpl UserBuilder
impl UserBuilder
sourcepub fn list(&self) -> ListUserBuilder<'_>
pub fn list(&self) -> ListUserBuilder<'_>
Search for users.
sourcepub fn search(&self) -> ListUserBuilder<'_>
pub fn search(&self) -> ListUserBuilder<'_>
Search for users.
https://api.mangadex.org/swagger.html#/User/get-user
This is an alias for the Self::list()
function.
sourcepub fn get(&self) -> GetUserBuilder<'_>
pub fn get(&self) -> GetUserBuilder<'_>
Get a single user.
sourcepub fn view(&self) -> GetUserBuilder<'_>
pub fn view(&self) -> GetUserBuilder<'_>
Get a single user.
https://api.mangadex.org/swagger.html#/User/get-user-id
This is an alias for Self::get()
to maintain backwards-compatibility.
sourcepub fn followed_manga_feed(&self) -> GetFollowedMangaFeedBuilder<'_>
pub fn followed_manga_feed(&self) -> GetFollowedMangaFeedBuilder<'_>
Get the manga feed (chapter list) of manga the logged-in user follows.
https://api.mangadex.org/swagger.html#/Feed/get-user-follows-manga-feed
sourcepub fn followed_groups(&self) -> FollowedGroupsBuilder
pub fn followed_groups(&self) -> FollowedGroupsBuilder
Get the followed scanlation groups for the logged-in user.
https://api.mangadex.org/swagger.html#/Follows/get-user-follows-group
sourcepub fn delete(&self) -> DeleteUserBuilder<'_>
pub fn delete(&self) -> DeleteUserBuilder<'_>
Delete a user.
sourcepub fn approve_deletion(&self) -> ApproveUserDeletionBuilder<'_>
pub fn approve_deletion(&self) -> ApproveUserDeletionBuilder<'_>
Approve the deletion of a user.
https://api.mangadex.org/swagger.html#/User/post-user-delete-code
sourcepub fn update_password(&self) -> UpdateUserPasswordBuilder<'_>
pub fn update_password(&self) -> UpdateUserPasswordBuilder<'_>
Update the logged-in user’s password.
https://api.mangadex.org/swagger.html#/User/post-user-password
sourcepub fn update_email(&self) -> UpdateUserEmailBuilder<'_>
pub fn update_email(&self) -> UpdateUserEmailBuilder<'_>
Update the logged-in user’s email.
sourcepub fn me(&self) -> GetMyUserDetailsBuilder
pub fn me(&self) -> GetMyUserDetailsBuilder
Get the logged-in user’s details.
sourcepub fn is_following_group(&self) -> IsFollowingGroupBuilder<'_>
pub fn is_following_group(&self) -> IsFollowingGroupBuilder<'_>
Check if the logged-in user follows a given group.
https://api.mangadex.org/swagger.html#/Follows/get-user-follows-group-id
sourcepub fn followed_users(&self) -> FollowedUsersBuilder
pub fn followed_users(&self) -> FollowedUsersBuilder
Get the followed users for the logged-in user.
https://api.mangadex.org/swagger.html#/Follows/get-user-follows-user
sourcepub fn is_following_user(&self) -> IsFollowingUserBuilder<'_>
pub fn is_following_user(&self) -> IsFollowingUserBuilder<'_>
Check if the logged-in user follows a given user.
https://api.mangadex.org/swagger.html#/Follows/get-user-follows-user-id
sourcepub fn followed_manga(&self) -> FollowedMangaBuilder
pub fn followed_manga(&self) -> FollowedMangaBuilder
Get the followed manga for the logged-in user.
https://api.mangadex.org/swagger.html#/Follows/get-user-follows-manga
sourcepub fn is_following_manga(&self) -> IsFollowingMangaBuilder<'_>
pub fn is_following_manga(&self) -> IsFollowingMangaBuilder<'_>
Check if the logged-in user follows a given manga.
https://api.mangadex.org/swagger.html#/Follows/get-user-follows-manga-id
sourcepub fn my_custom_lists(&self) -> MyCustomListsBuilder
pub fn my_custom_lists(&self) -> MyCustomListsBuilder
Get the custom lists for the logged-in user.
This will fetch public and private lists.
https://api.mangadex.org/swagger.html#/CustomList/get-user-list
sourcepub fn custom_lists(&self) -> UserCustomListsBuilder<'_>
pub fn custom_lists(&self) -> UserCustomListsBuilder<'_>
Get a user’s public custom lists.
https://api.mangadex.org/swagger.html#/User/get-user-id-list
Private lists are not included.
sourcepub fn followed_custom_lists(&self) -> GetFollowedCustomListsBuilder
pub fn followed_custom_lists(&self) -> GetFollowedCustomListsBuilder
Get the logged-in user’s followed custom lists.
https://api.mangadex.org/swagger.html#/Follows/get-user-follows-list
sourcepub fn is_following_custom_list(&self) -> IsFollowingCustomListBuilder<'_>
pub fn is_following_custom_list(&self) -> IsFollowingCustomListBuilder<'_>
Check if the logged-in user follows a custom list.
https://api.mangadex.org/swagger.html#/Follows/get-user-follows-list-id
Trait Implementations
Auto Trait Implementations
impl !RefUnwindSafe for UserBuilder
impl Send for UserBuilder
impl Sync for UserBuilder
impl Unpin for UserBuilder
impl !UnwindSafe for UserBuilder
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more