melib/jmap/rfc8620.rs: make private fields public
parent
347be54305
commit
117d7fbe04
|
@ -227,32 +227,32 @@ impl Object for JmapSession {
|
||||||
#[serde(rename_all = "camelCase")]
|
#[serde(rename_all = "camelCase")]
|
||||||
pub struct CapabilitiesObject {
|
pub struct CapabilitiesObject {
|
||||||
#[serde(default)]
|
#[serde(default)]
|
||||||
max_size_upload: u64,
|
pub max_size_upload: u64,
|
||||||
#[serde(default)]
|
#[serde(default)]
|
||||||
max_concurrent_upload: u64,
|
pub max_concurrent_upload: u64,
|
||||||
#[serde(default)]
|
#[serde(default)]
|
||||||
max_size_request: u64,
|
pub max_size_request: u64,
|
||||||
#[serde(default)]
|
#[serde(default)]
|
||||||
max_concurrent_requests: u64,
|
pub max_concurrent_requests: u64,
|
||||||
#[serde(default)]
|
#[serde(default)]
|
||||||
max_calls_in_request: u64,
|
pub max_calls_in_request: u64,
|
||||||
#[serde(default)]
|
#[serde(default)]
|
||||||
max_objects_in_get: u64,
|
pub max_objects_in_get: u64,
|
||||||
#[serde(default)]
|
#[serde(default)]
|
||||||
max_objects_in_set: u64,
|
pub max_objects_in_set: u64,
|
||||||
#[serde(default)]
|
#[serde(default)]
|
||||||
collation_algorithms: Vec<String>,
|
pub collation_algorithms: Vec<String>,
|
||||||
}
|
}
|
||||||
|
|
||||||
#[derive(Deserialize, Serialize, Debug)]
|
#[derive(Deserialize, Serialize, Debug)]
|
||||||
#[serde(rename_all = "camelCase")]
|
#[serde(rename_all = "camelCase")]
|
||||||
pub struct Account {
|
pub struct Account {
|
||||||
name: String,
|
pub name: String,
|
||||||
is_personal: bool,
|
pub is_personal: bool,
|
||||||
is_read_only: bool,
|
pub is_read_only: bool,
|
||||||
account_capabilities: HashMap<String, Value>,
|
pub account_capabilities: HashMap<String, Value>,
|
||||||
#[serde(flatten)]
|
#[serde(flatten)]
|
||||||
extra_properties: HashMap<String, Value>,
|
pub extra_properties: HashMap<String, Value>,
|
||||||
}
|
}
|
||||||
|
|
||||||
impl Object for Account {
|
impl Object for Account {
|
||||||
|
@ -440,20 +440,20 @@ pub struct Query<F: FilterTrait<OBJ>, OBJ: Object>
|
||||||
where
|
where
|
||||||
OBJ: std::fmt::Debug + Serialize,
|
OBJ: std::fmt::Debug + Serialize,
|
||||||
{
|
{
|
||||||
account_id: Id<Account>,
|
pub account_id: Id<Account>,
|
||||||
filter: Option<F>,
|
pub filter: Option<F>,
|
||||||
sort: Option<Comparator<OBJ>>,
|
pub sort: Option<Comparator<OBJ>>,
|
||||||
#[serde(default)]
|
#[serde(default)]
|
||||||
position: u64,
|
pub position: u64,
|
||||||
#[serde(skip_serializing_if = "Option::is_none")]
|
#[serde(skip_serializing_if = "Option::is_none")]
|
||||||
anchor: Option<String>,
|
pub anchor: Option<String>,
|
||||||
#[serde(default)]
|
#[serde(default)]
|
||||||
#[serde(skip_serializing_if = "u64_zero")]
|
#[serde(skip_serializing_if = "u64_zero")]
|
||||||
anchor_offset: u64,
|
pub anchor_offset: u64,
|
||||||
#[serde(skip_serializing_if = "Option::is_none")]
|
#[serde(skip_serializing_if = "Option::is_none")]
|
||||||
limit: Option<u64>,
|
pub limit: Option<u64>,
|
||||||
#[serde(default = "bool_false")]
|
#[serde(default = "bool_false")]
|
||||||
calculate_total: bool,
|
pub calculate_total: bool,
|
||||||
#[serde(skip)]
|
#[serde(skip)]
|
||||||
_ph: PhantomData<fn() -> OBJ>,
|
_ph: PhantomData<fn() -> OBJ>,
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue