| extended_properties.rs |
Hand-written types and wrappers for simpler, more strongly-typed access to
[extended properties].
There are two kinds of extended properties: single-value legacy extended
properties, and multi-value legacy extended properties, where the word
"legacy" is often elided. This crate currently only supports single-value
legacy extended properties, or SVLEPs for short.
The typical way to use this module is to define a constant representing the
property in question via [`crate::define_svlep!`], calling
[`SingleValueExtendedPropertiesOp::expand_typed_svlep`] with that constant,
and getting the result from the response via
[`SingleValueExtendedPropertiesType::typed_svlep`] with the same constant.
# Example
```rust
# use ms_graph_tb::define_svlep;
# use ms_graph_tb::extended_properties::{
# SingleValueExtendedPropertiesOp, SingleValueExtendedPropertiesType,
# };
# use ms_graph_tb::paths::me::mail_folders::mail_folder_id::messages;
# let endpoint = String::new();
# let folder_id = String::new();
define_svlep!(PID_TAG_MESSAGE_SIZE, Integer, 0x0E08);
let mut request = messages::Get::new(endpoint, folder_id);
request.expand_typed_svlep([PID_TAG_MESSAGE_SIZE]);
// let message = [send request and get response];
# let message = ms_graph_tb::types::message::Message::new()
# .set_single_value_extended_properties(vec![
# ms_graph_tb::types::single_value_legacy_extended_property::SingleValueLegacyExtendedProperty::new()
# .set_entity(ms_graph_tb::types::entity::Entity::new().set_id("Integer 0x0E08".to_string()))
# .set_value(Some("42".to_string())),
# ]);
let message_size = message.typed_svlep(PID_TAG_MESSAGE_SIZE)?;
assert_eq!(message_size, Some(42));
# Ok::<(), ms_graph_tb::Error>(())
```
[extended properties]: https://learn.microsoft.com/en-us/graph/api/resources/extended-properties-overview |
20707 |
- |
| lib.rs |
|
6901 |
- |
| odata.rs |
Types for working with [OData query
parameters](https://learn.microsoft.com/en-us/graph/query-parameters). |
17407 |
- |
| pagination.rs |
|
18116 |
- |
| paths |
|
|
- |
| types |
|
|
- |