pub async fn update(
    id: &str,
    add_statuses: Vec<Status>,
    remove_statuses: Vec<Status>,
    new_data: UpdateContactData,
    client_sender: &mut Sender<RequestMessage>
) -> Result<CommandResponse<UpdateResponse>, Error>
Expand description

Updates an existing contact

Contact numbers must be in +cc.xxxxxxxxxx format where c is the country dialing code and x is the country local number

Arguments

  • id - The ID of said contact
  • add_statuses - Statuses to be set on the contact
  • remove_statuses - Statuses to be removed from the contact
  • new_contact_data - New data to be set on the contact
  • client_sender - Reference to the tokio channel into the client