pub struct UsersController { /* private fields */ }Implementations§
Source§impl UsersController
impl UsersController
Sourcepub async fn create(
&self,
request: CreateUserRequestDto,
) -> Result<CreateUserResponseDto, ApiError>
pub async fn create( &self, request: CreateUserRequestDto, ) -> Result<CreateUserResponseDto, ApiError>
POST /api/users - UsersController
Source§impl UsersController
impl UsersController
Sourcepub async fn update(
&self,
request: UpdateUserRequestDto,
) -> Result<UpdateUserResponseDto, ApiError>
pub async fn update( &self, request: UpdateUserRequestDto, ) -> Result<UpdateUserResponseDto, ApiError>
PATCH /api/users - UsersController
Source§impl UsersController
impl UsersController
Sourcepub async fn get_by_uuid(
&self,
uuid: Uuid,
) -> Result<GetUserByUuidResponseDto, ApiError>
pub async fn get_by_uuid( &self, uuid: Uuid, ) -> Result<GetUserByUuidResponseDto, ApiError>
GET /api/users/{} - UsersController
Source§impl UsersController
impl UsersController
GET /api/users/tags - UsersController
Source§impl UsersController
impl UsersController
Sourcepub async fn get_accessible_nodes(
&self,
uuid: Uuid,
) -> Result<GetUserAccessibleNodesResponseDto, ApiError>
pub async fn get_accessible_nodes( &self, uuid: Uuid, ) -> Result<GetUserAccessibleNodesResponseDto, ApiError>
GET /api/users/{}/accessible-nodes - UsersController
Source§impl UsersController
impl UsersController
Sourcepub async fn get_subscription_request_history(
&self,
uuid: Uuid,
) -> Result<GetUserSubscriptionRequestHistoryResponseDto, ApiError>
pub async fn get_subscription_request_history( &self, uuid: Uuid, ) -> Result<GetUserSubscriptionRequestHistoryResponseDto, ApiError>
GET /api/users/{}/subscription-request-history - UsersController
Source§impl UsersController
impl UsersController
Sourcepub async fn get_by_short_uuid(
&self,
short_uuid: String,
) -> Result<GetUserByShortUuidResponseDto, ApiError>
pub async fn get_by_short_uuid( &self, short_uuid: String, ) -> Result<GetUserByShortUuidResponseDto, ApiError>
GET /api/users/by-short-uuid/{} - UsersController
Source§impl UsersController
impl UsersController
Sourcepub async fn get_by_username(
&self,
username: String,
) -> Result<GetUserByUsernameResponseDto, ApiError>
pub async fn get_by_username( &self, username: String, ) -> Result<GetUserByUsernameResponseDto, ApiError>
GET /api/users/by-username/{} - UsersController
Source§impl UsersController
impl UsersController
Sourcepub async fn get_by_telegram_id(
&self,
telegram_id: String,
) -> Result<GetUserByTelegramIdResponseDto, ApiError>
pub async fn get_by_telegram_id( &self, telegram_id: String, ) -> Result<GetUserByTelegramIdResponseDto, ApiError>
GET /api/users/by-telegram-id/{} - UsersController
Source§impl UsersController
impl UsersController
Sourcepub async fn get_by_email(
&self,
email: String,
) -> Result<GetUserByEmailResponseDto, ApiError>
pub async fn get_by_email( &self, email: String, ) -> Result<GetUserByEmailResponseDto, ApiError>
GET /api/users/by-email/{} - UsersController
Source§impl UsersController
impl UsersController
Sourcepub async fn get_by_tag(
&self,
tag: String,
) -> Result<GetUserByTagResponseDto, ApiError>
pub async fn get_by_tag( &self, tag: String, ) -> Result<GetUserByTagResponseDto, ApiError>
GET /api/users/by-tag/{} - UsersController
Source§impl UsersController
impl UsersController
Sourcepub async fn revoke_subscription(
&self,
uuid: Uuid,
request: RevokeUserSubscriptionBodyDto,
) -> Result<RevokeUserSubscriptionResponseDto, ApiError>
pub async fn revoke_subscription( &self, uuid: Uuid, request: RevokeUserSubscriptionBodyDto, ) -> Result<RevokeUserSubscriptionResponseDto, ApiError>
POST /api/users/{}/actions/revoke - UsersController
Source§impl UsersController
impl UsersController
Sourcepub async fn reset_traffic(
&self,
uuid: Uuid,
) -> Result<ResetUserTrafficResponseDto, ApiError>
pub async fn reset_traffic( &self, uuid: Uuid, ) -> Result<ResetUserTrafficResponseDto, ApiError>
POST /api/users/{}/actions/reset-traffic - UsersController
Source§impl UsersController
impl UsersController
Sourcepub async fn bulk_delete_by_status(
&self,
request: BulkDeleteUsersByStatusRequestDto,
) -> Result<BulkDeleteUsersByStatusResponseDto, ApiError>
pub async fn bulk_delete_by_status( &self, request: BulkDeleteUsersByStatusRequestDto, ) -> Result<BulkDeleteUsersByStatusResponseDto, ApiError>
POST /api/users/bulk/delete-by-status - UsersController
Source§impl UsersController
impl UsersController
Sourcepub async fn bulk_delete(
&self,
request: BulkDeleteUsersRequestDto,
) -> Result<BulkDeleteUsersResponseDto, ApiError>
pub async fn bulk_delete( &self, request: BulkDeleteUsersRequestDto, ) -> Result<BulkDeleteUsersResponseDto, ApiError>
POST /api/users/bulk/delete - UsersController
Source§impl UsersController
impl UsersController
Sourcepub async fn bulk_revoke_subscription(
&self,
request: BulkRevokeUsersSubscriptionRequestDto,
) -> Result<BulkRevokeUsersSubscriptionResponseDto, ApiError>
pub async fn bulk_revoke_subscription( &self, request: BulkRevokeUsersSubscriptionRequestDto, ) -> Result<BulkRevokeUsersSubscriptionResponseDto, ApiError>
POST /api/users/bulk/revoke-subscription - UsersController
Source§impl UsersController
impl UsersController
Sourcepub async fn bulk_reset_traffic(
&self,
request: BulkResetTrafficUsersRequestDto,
) -> Result<BulkResetTrafficUsersResponseDto, ApiError>
pub async fn bulk_reset_traffic( &self, request: BulkResetTrafficUsersRequestDto, ) -> Result<BulkResetTrafficUsersResponseDto, ApiError>
POST /api/users/bulk/reset-traffic - UsersController
Source§impl UsersController
impl UsersController
Sourcepub async fn bulk_update(
&self,
request: BulkUpdateUsersRequestDto,
) -> Result<BulkUpdateUsersResponseDto, ApiError>
pub async fn bulk_update( &self, request: BulkUpdateUsersRequestDto, ) -> Result<BulkUpdateUsersResponseDto, ApiError>
POST /api/users/bulk/update - UsersController
Source§impl UsersController
impl UsersController
Sourcepub async fn bulk_update_internal_squads(
&self,
request: BulkUpdateUsersSquadsRequestDto,
) -> Result<BulkUpdateUsersSquadsResponseDto, ApiError>
pub async fn bulk_update_internal_squads( &self, request: BulkUpdateUsersSquadsRequestDto, ) -> Result<BulkUpdateUsersSquadsResponseDto, ApiError>
POST /api/users/bulk/update-squads - UsersController
Source§impl UsersController
impl UsersController
Sourcepub async fn bulk_update_all(
&self,
request: BulkAllUpdateUsersRequestDto,
) -> Result<BulkAllUpdateUsersResponseDto, ApiError>
pub async fn bulk_update_all( &self, request: BulkAllUpdateUsersRequestDto, ) -> Result<BulkAllUpdateUsersResponseDto, ApiError>
POST /api/users/bulk/all/update - UsersController
Source§impl UsersController
impl UsersController
Sourcepub async fn bulk_all_reset_traffic(
&self,
) -> Result<BulkAllResetTrafficUsersResponseDto, ApiError>
pub async fn bulk_all_reset_traffic( &self, ) -> Result<BulkAllResetTrafficUsersResponseDto, ApiError>
POST /api/users/bulk/all/reset-traffic - UsersController
Source§impl UsersController
impl UsersController
Sourcepub async fn get_usage_by_range(
&self,
uuid: Uuid,
start: Option<String>,
end: Option<String>,
) -> Result<GetUserUsageByRangeResponseDto, ApiError>
pub async fn get_usage_by_range( &self, uuid: Uuid, start: Option<String>, end: Option<String>, ) -> Result<GetUserUsageByRangeResponseDto, ApiError>
GET /api/users/stats/usage/{}/range - UsersController
Source§impl UsersController
impl UsersController
Sourcepub async fn create_user(
&self,
request: CreateUserRequestDto,
) -> Result<CreateUserResponseDto, ApiError>
👎Deprecated: Use create
pub async fn create_user( &self, request: CreateUserRequestDto, ) -> Result<CreateUserResponseDto, ApiError>
Use create
POST /api/users - UsersController
Source§impl UsersController
impl UsersController
Sourcepub async fn update_user(
&self,
request: UpdateUserRequestDto,
) -> Result<UpdateUserResponseDto, ApiError>
👎Deprecated: Use update
pub async fn update_user( &self, request: UpdateUserRequestDto, ) -> Result<UpdateUserResponseDto, ApiError>
Use update
PATCH /api/users - UsersController
Source§impl UsersController
impl UsersController
Sourcepub async fn get_all_users(
&self,
size: Option<u32>,
start: Option<u32>,
) -> Result<GetAllUsersResponseDto, ApiError>
👎Deprecated: Use get_all
pub async fn get_all_users( &self, size: Option<u32>, start: Option<u32>, ) -> Result<GetAllUsersResponseDto, ApiError>
Use get_all
GET /api/users - UsersController
Source§impl UsersController
impl UsersController
Sourcepub async fn delete_user(
&self,
uuid: Uuid,
) -> Result<DeleteUserResponseDto, ApiError>
👎Deprecated: Use delete
pub async fn delete_user( &self, uuid: Uuid, ) -> Result<DeleteUserResponseDto, ApiError>
Use delete
DELETE /api/users/{uuid} - UsersController
Source§impl UsersController
impl UsersController
Sourcepub async fn get_user_by_uuid(
&self,
uuid: Uuid,
) -> Result<GetUserByUuidResponseDto, ApiError>
👎Deprecated: Use get_by_uuid
pub async fn get_user_by_uuid( &self, uuid: Uuid, ) -> Result<GetUserByUuidResponseDto, ApiError>
Use get_by_uuid
GET /api/users/{} - UsersController
Source§impl UsersController
impl UsersController
👎Deprecated: Use get_all_tags
Use get_all_tags
GET /api/users/tags - UsersController
Source§impl UsersController
impl UsersController
Sourcepub async fn get_user_accessible_nodes(
&self,
uuid: Uuid,
) -> Result<GetUserAccessibleNodesResponseDto, ApiError>
👎Deprecated: Use get_accessible_nodes
pub async fn get_user_accessible_nodes( &self, uuid: Uuid, ) -> Result<GetUserAccessibleNodesResponseDto, ApiError>
Use get_accessible_nodes
GET /api/users/{}/accessible-nodes - UsersController
Source§impl UsersController
impl UsersController
Sourcepub async fn get_user_subscription_request_history(
&self,
uuid: Uuid,
) -> Result<GetUserSubscriptionRequestHistoryResponseDto, ApiError>
👎Deprecated: Use get_subscription_request_history
pub async fn get_user_subscription_request_history( &self, uuid: Uuid, ) -> Result<GetUserSubscriptionRequestHistoryResponseDto, ApiError>
Use get_subscription_request_history
GET /api/users/{}/subscription-request-history - UsersController
Source§impl UsersController
impl UsersController
Sourcepub async fn get_user_by_short_uuid(
&self,
short_uuid: String,
) -> Result<GetUserByShortUuidResponseDto, ApiError>
👎Deprecated: Use get_by_short_uuid
pub async fn get_user_by_short_uuid( &self, short_uuid: String, ) -> Result<GetUserByShortUuidResponseDto, ApiError>
Use get_by_short_uuid
GET /api/users/by-short-uuid/{} - UsersController
Source§impl UsersController
impl UsersController
Sourcepub async fn get_user_by_username(
&self,
username: String,
) -> Result<GetUserByUsernameResponseDto, ApiError>
👎Deprecated: Use get_by_username
pub async fn get_user_by_username( &self, username: String, ) -> Result<GetUserByUsernameResponseDto, ApiError>
Use get_by_username
GET /api/users/by-username/{} - UsersController
Source§impl UsersController
impl UsersController
Sourcepub async fn get_user_by_telegram_id(
&self,
telegram_id: String,
) -> Result<GetUserByTelegramIdResponseDto, ApiError>
👎Deprecated: Use get_by_telegram_id
pub async fn get_user_by_telegram_id( &self, telegram_id: String, ) -> Result<GetUserByTelegramIdResponseDto, ApiError>
Use get_by_telegram_id
GET /api/users/by-telegram-id/{} - UsersController
Source§impl UsersController
impl UsersController
Sourcepub async fn get_users_by_email(
&self,
email: String,
) -> Result<GetUserByEmailResponseDto, ApiError>
👎Deprecated: Use get_by_email
pub async fn get_users_by_email( &self, email: String, ) -> Result<GetUserByEmailResponseDto, ApiError>
Use get_by_email
GET /api/users/by-email/{} - UsersController
Source§impl UsersController
impl UsersController
Sourcepub async fn get_users_by_tag(
&self,
tag: String,
) -> Result<GetUserByTagResponseDto, ApiError>
👎Deprecated: Use get_by_tag
pub async fn get_users_by_tag( &self, tag: String, ) -> Result<GetUserByTagResponseDto, ApiError>
Use get_by_tag
GET /api/users/by-tag/{} - UsersController
Source§impl UsersController
impl UsersController
Sourcepub async fn revoke_user_subscription(
&self,
uuid: Uuid,
request: RevokeUserSubscriptionBodyDto,
) -> Result<RevokeUserSubscriptionResponseDto, ApiError>
👎Deprecated: Use revoke_subscription
pub async fn revoke_user_subscription( &self, uuid: Uuid, request: RevokeUserSubscriptionBodyDto, ) -> Result<RevokeUserSubscriptionResponseDto, ApiError>
Use revoke_subscription
POST /api/users/{}/actions/revoke - UsersController
Source§impl UsersController
impl UsersController
Sourcepub async fn disable_user(
&self,
uuid: Uuid,
) -> Result<DisableUserResponseDto, ApiError>
👎Deprecated: Use disable
pub async fn disable_user( &self, uuid: Uuid, ) -> Result<DisableUserResponseDto, ApiError>
Use disable
POST /api/users/{}/actions/disable - UsersController
Source§impl UsersController
impl UsersController
Sourcepub async fn enable_user(
&self,
uuid: Uuid,
) -> Result<EnableUserResponseDto, ApiError>
👎Deprecated: Use enable
pub async fn enable_user( &self, uuid: Uuid, ) -> Result<EnableUserResponseDto, ApiError>
Use enable
POST /api/users/{}/actions/enable - UsersController
Source§impl UsersController
impl UsersController
Sourcepub async fn reset_user_traffic(
&self,
uuid: Uuid,
) -> Result<ResetUserTrafficResponseDto, ApiError>
👎Deprecated: Use reset_traffic
pub async fn reset_user_traffic( &self, uuid: Uuid, ) -> Result<ResetUserTrafficResponseDto, ApiError>
Use reset_traffic
POST /api/users/{}/actions/reset-traffic - UsersController
Source§impl UsersController
impl UsersController
Sourcepub async fn bulk_delete_users_by_status(
&self,
request: BulkDeleteUsersByStatusRequestDto,
) -> Result<BulkDeleteUsersByStatusResponseDto, ApiError>
👎Deprecated: Use bulk_delete_by_status
pub async fn bulk_delete_users_by_status( &self, request: BulkDeleteUsersByStatusRequestDto, ) -> Result<BulkDeleteUsersByStatusResponseDto, ApiError>
Use bulk_delete_by_status
POST /api/users/bulk/delete-by-status - UsersController
Source§impl UsersController
impl UsersController
Sourcepub async fn bulk_delete_users(
&self,
request: BulkDeleteUsersRequestDto,
) -> Result<BulkDeleteUsersResponseDto, ApiError>
👎Deprecated: Use bulk_delete
pub async fn bulk_delete_users( &self, request: BulkDeleteUsersRequestDto, ) -> Result<BulkDeleteUsersResponseDto, ApiError>
Use bulk_delete
POST /api/users/bulk/delete - UsersController
Source§impl UsersController
impl UsersController
Sourcepub async fn bulk_revoke_users_subscription(
&self,
request: BulkRevokeUsersSubscriptionRequestDto,
) -> Result<BulkRevokeUsersSubscriptionResponseDto, ApiError>
👎Deprecated: Use bulk_revoke_subscription
pub async fn bulk_revoke_users_subscription( &self, request: BulkRevokeUsersSubscriptionRequestDto, ) -> Result<BulkRevokeUsersSubscriptionResponseDto, ApiError>
Use bulk_revoke_subscription
POST /api/users/bulk/revoke-subscription - UsersController
Source§impl UsersController
impl UsersController
Sourcepub async fn bulk_reset_user_traffic(
&self,
request: BulkResetTrafficUsersRequestDto,
) -> Result<BulkResetTrafficUsersResponseDto, ApiError>
👎Deprecated: Use bulk_reset_traffic
pub async fn bulk_reset_user_traffic( &self, request: BulkResetTrafficUsersRequestDto, ) -> Result<BulkResetTrafficUsersResponseDto, ApiError>
Use bulk_reset_traffic
POST /api/users/bulk/reset-traffic - UsersController
Source§impl UsersController
impl UsersController
Sourcepub async fn bulk_update_users(
&self,
request: BulkUpdateUsersRequestDto,
) -> Result<BulkUpdateUsersResponseDto, ApiError>
👎Deprecated: Use bulk_update
pub async fn bulk_update_users( &self, request: BulkUpdateUsersRequestDto, ) -> Result<BulkUpdateUsersResponseDto, ApiError>
Use bulk_update
POST /api/users/bulk/update - UsersController
Source§impl UsersController
impl UsersController
Sourcepub async fn bulk_update_users_internal_squads(
&self,
request: BulkUpdateUsersSquadsRequestDto,
) -> Result<BulkUpdateUsersSquadsResponseDto, ApiError>
👎Deprecated: Use bulk_update_internal_squads
pub async fn bulk_update_users_internal_squads( &self, request: BulkUpdateUsersSquadsRequestDto, ) -> Result<BulkUpdateUsersSquadsResponseDto, ApiError>
Use bulk_update_internal_squads
POST /api/users/bulk/update-squads - UsersController
Source§impl UsersController
impl UsersController
Sourcepub async fn bulk_update_all_users(
&self,
request: BulkAllUpdateUsersRequestDto,
) -> Result<BulkAllUpdateUsersResponseDto, ApiError>
👎Deprecated: Use bulk_update_all
pub async fn bulk_update_all_users( &self, request: BulkAllUpdateUsersRequestDto, ) -> Result<BulkAllUpdateUsersResponseDto, ApiError>
Use bulk_update_all
POST /api/users/bulk/all/update - UsersController
Source§impl UsersController
impl UsersController
Sourcepub async fn bulk_all_reset_user_traffic(
&self,
) -> Result<BulkAllResetTrafficUsersResponseDto, ApiError>
👎Deprecated: Use bulk_all_reset_traffic
pub async fn bulk_all_reset_user_traffic( &self, ) -> Result<BulkAllResetTrafficUsersResponseDto, ApiError>
Use bulk_all_reset_traffic
POST /api/users/bulk/all/reset-traffic - UsersController
Source§impl UsersController
impl UsersController
Sourcepub async fn get_user_usage_by_range(
&self,
uuid: Uuid,
start: Option<String>,
end: Option<String>,
) -> Result<GetUserUsageByRangeResponseDto, ApiError>
👎Deprecated: Use get_usage_by_range
pub async fn get_user_usage_by_range( &self, uuid: Uuid, start: Option<String>, end: Option<String>, ) -> Result<GetUserUsageByRangeResponseDto, ApiError>
Use get_usage_by_range
GET /api/users/stats/usage/{}/range - UsersController