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 contactadd_statuses
- Statuses to be set on the contactremove_statuses
- Statuses to be removed from the contactnew_contact_data
- New data to be set on the contactclient_sender
- Reference to the tokio channel into the client