mangadex_api::v5::user::id::follow

Module delete

Source
Expand description

Builder for unfollowing an user.

https://api.mangadex.org/docs/swagger.html#/ScanlationGroup/delete-group-id-follow

§Examples

use uuid::Uuid;

use mangadex_api::v5::MangaDexClient;
// use mangadex_api_types::{Password, Username};

let client = MangaDexClient::default();

/*

    let _login_res = client
        .auth()
        .login()
        .post()
        .username(Username::parse("myusername")?)
        .password(Password::parse("hunter23")?)
        .send()
        .await?;

 */

let group_id = Uuid::new_v4();

let res = client
    .user()
    .id(group_id)
    .follow()
    .delete()
    .send()
    .await?;

println!("unfollow group: {:?}", res);

Structs§