1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45
use crate::client::Graph; use graph_http::types::Content; use graph_http::GraphResponse; use graph_http::IntoResponse; use reqwest::Method; register_client!(SettingsRequest,); impl<'a, Client> SettingsRequest<'a, Client> where Client: graph_http::RequestClient, { get!({ doc: "# Get settings from me", name: get_settings, response: serde_json::Value, path: "/settings", params: 0, has_body: false }); patch!({ doc: "# Update the navigation property settings in me", name: update_settings, response: GraphResponse<Content>, path: "/settings", params: 0, has_body: true }); get!({ doc: "# Get shiftPreferences from me", name: get_shift_preferences, response: serde_json::Value, path: "/settings/shiftPreferences", params: 0, has_body: false }); patch!({ doc: "# Update the navigation property shiftPreferences in me", name: update_shift_preferences, response: GraphResponse<Content>, path: "/settings/shiftPreferences", params: 0, has_body: true }); }