Multiline docstring to single line docstring
This commit is contained in:
parent
0f085491a0
commit
20f39a409d
|
@ -10,16 +10,18 @@ use crate::{
|
||||||
};
|
};
|
||||||
|
|
||||||
impl UserMeta {
|
impl UserMeta {
|
||||||
/**
|
/// Get a user object by id, or get the current user.
|
||||||
Get a user object by id, or get the current user.
|
///
|
||||||
# Arguments
|
/// # Arguments
|
||||||
* `token` - A valid access token for the API.
|
///
|
||||||
* `url_api` - The URL to the API.
|
/// * `token` - A valid access token for the API.
|
||||||
* `id` - The id of the user that will be retrieved. If this is None, the current user will be retrieved.
|
/// * `url_api` - The URL to the API.
|
||||||
* `instance_limits` - The [`Limits`] of the instance.
|
/// * `id` - The id of the user that will be retrieved. If this is None, the current user will be retrieved.
|
||||||
# Errors
|
/// * `instance_limits` - The [`Limits`] of the instance.
|
||||||
* [`ChorusLibError`] - If the request fails.
|
///
|
||||||
*/
|
/// # Errors
|
||||||
|
///
|
||||||
|
/// * [`ChorusLibError`] - If the request fails.
|
||||||
pub async fn get(user: &mut UserMeta, id: Option<&String>) -> Result<User, ChorusLibError> {
|
pub async fn get(user: &mut UserMeta, id: Option<&String>) -> Result<User, ChorusLibError> {
|
||||||
User::get(user, id).await
|
User::get(user, id).await
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue