pub struct AddressBookSetParams {
pub on_destroy_remove_contents: Option<bool>,
pub on_success_set_is_default: Option<Value>,
pub extra: Map<String, Value>,
}Expand description
Extra method-level arguments for AddressBook/set
(RFC 9610 §2.3).
Both fields are optional. Pass None (or Default::default()) when not
needed.
Fields§
§on_destroy_remove_contents: Option<bool>If true, ContactCards that belong only to a destroyed AddressBook
are also destroyed. Cards shared with other books are simply detached.
on_success_set_is_default: Option<Value>A serde_json::Value holding the onSuccessSetIsDefault argument.
When Some, the server sets the indicated AddressBook as the default
after all other operations succeed (RFC 9610 §2.3).
extra: Map<String, Value>Catch-all for vendor / site / private extension fields not covered by the typed fields above. Preserves unknown fields across deserialize/serialize round-trip per workspace extras-preservation policy (see workspace AGENTS.md).
Constraint: keys in extra MUST NOT collide with the
typed-field wire names above (the camelCase spelling — e.g.
"accountId", "ids", "properties", "blobIds",
"fromAccountId", etc.). On collision the typed-field value
wins on the wire and the extra value is silently dropped at
serialization. Place vendor extensions under vendor-prefixed
keys (e.g. "acmeCorpFoo") to avoid the collision class.
Trait Implementations§
Source§impl Clone for AddressBookSetParams
impl Clone for AddressBookSetParams
Source§fn clone(&self) -> AddressBookSetParams
fn clone(&self) -> AddressBookSetParams
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more