pub struct UpdateContactParams {
pub id: String,
pub etag: String,
pub full_name: Option<String>,
pub emails: Option<Vec<String>>,
pub phones: Option<Vec<String>>,
}Expand description
Arguments for contacts_update.
Fields§
§id: StringOpaque contact id.
etag: StringThe etag from the last read. A different one means the contact changed.
full_name: Option<String>New full name. Omit to keep it.
emails: Option<Vec<String>>The full list of email addresses the contact should have. Omit to keep them.
phones: Option<Vec<String>>The full list of phone numbers the contact should have. Omit to keep them.
Trait Implementations§
Source§impl Debug for UpdateContactParams
impl Debug for UpdateContactParams
Source§impl Default for UpdateContactParams
impl Default for UpdateContactParams
Source§impl<'de> Deserialize<'de> for UpdateContactParams
impl<'de> Deserialize<'de> for UpdateContactParams
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl JsonSchema for UpdateContactParams
impl JsonSchema for UpdateContactParams
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreAuto Trait Implementations§
impl Forget for UpdateContactParams
impl Freeze for UpdateContactParams
impl Move for UpdateContactParams
impl RefUnwindSafe for UpdateContactParams
impl Send for UpdateContactParams
impl Sync for UpdateContactParams
impl Unpin for UpdateContactParams
impl UnsafeUnpin for UpdateContactParams
impl UnwindSafe for UpdateContactParams
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more