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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
//! draft-ietf-jmap-filenode-13 §2.1 — account-level capability object.
//!
//! Provides [`FileNodeCapability`] and the capability URI constant
//! [`JMAP_FILENODE_URI`].
use ;
/// The JMAP capability URI for the FileNode extension.
///
/// Present as a key in both the session-level `capabilities` object (value:
/// empty object) and in each account's `accountCapabilities` object (value:
/// a [`FileNodeCapability`]).
pub const JMAP_FILENODE_URI: &str = "urn:ietf:params:jmap:filenode";
/// Account-level capability for the JMAP FileNode extension
/// (draft-ietf-jmap-filenode-13 §2.1).
///
/// The value of the `urn:ietf:params:jmap:filenode` key in `accountCapabilities`.
///
/// ## Nullable fields
///
/// Fields typed `Option<T>` with no `skip_serializing_if` are **required-and-nullable**:
/// they MUST appear in wire JSON even when the value is `null` (e.g. `"maxFileNodeDepth":null`
/// means no limit). Fields with `skip_serializing_if = "Option::is_none"` are absent when
/// `None`, but none exist on this struct — all optional fields here are nullable.
///
/// ## `maxSizeFileNodeName` constraint
///
/// Per §2.1 the server MUST set this to at least 100. This crate does not enforce
/// the constraint at the type level (that would require a newtype); the server
/// implementation is responsible for the invariant.