pub async fn create(
id: &str,
data: NewContactData,
client_sender: &mut Sender<RequestMessage>
) -> Result<CommandResponse<CreateResponse>, Error>
Expand description
Creates a new contact
At least one of local_address
or internationalised_address
must be set. 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 desired contact IDdata
- Data for the new contactclient_sender
- Reference to the tokio channel into the client