moodle_api 0.1.0

Moodle Webservice Client in Rust.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
use serde::{self, Deserialize, Serialize};

/// List of user IDs
pub type r#ParamsUserids = Vec<i64>;

#[derive(Serialize, Deserialize, Debug)]
pub struct Params {
    /// List of user IDs
    #[serde(rename = "userids")]
    pub r#userids: Option<r#ParamsUserids>,
    /// The id of the user we are deleting the contacts for, 0 for the current user
    #[serde(rename = "userid")]
    pub r#userid: Option<i64>,
}