pub struct SetPhonebookParams {
pub phonebook: Option<String>,
pub speed_dial: Option<String>,
pub name: Option<String>,
pub number: Option<i64>,
pub callerid: Option<String>,
pub note: Option<String>,
pub group: Option<i64>,
}Expand description
- Updates a specific Phonebook entry if a phonebook code is provided. - Adds a new Phonebook entry if no phonebook code is provided.
Parameters for Client::set_phonebook (wire method setPhonebook).
Fields§
§phonebook: Option<String>ID for a specific Phonebook entry (Example: 32207 / Leave empty to create a new one)
speed_dial: Option<String>Speed Dial for the Phonebook entry
name: Option<String>Name for the Phonebook Entry (required)
number: Option<i64>Number or SIP for the Phonebook entry (Example: ‘sip:2563’ or ‘5552223333’) (required)
callerid: Option<String>Caller ID Override when dialing via Speed Dial
note: Option<String>Note for the phonebook entry
group: Option<i64>ID for a specific Phonebook group
Trait Implementations§
Source§impl Clone for SetPhonebookParams
impl Clone for SetPhonebookParams
Source§fn clone(&self) -> SetPhonebookParams
fn clone(&self) -> SetPhonebookParams
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for SetPhonebookParams
impl Debug for SetPhonebookParams
Source§impl Default for SetPhonebookParams
impl Default for SetPhonebookParams
Source§fn default() -> SetPhonebookParams
fn default() -> SetPhonebookParams
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for SetPhonebookParams
impl RefUnwindSafe for SetPhonebookParams
impl Send for SetPhonebookParams
impl Sync for SetPhonebookParams
impl Unpin for SetPhonebookParams
impl UnsafeUnpin for SetPhonebookParams
impl UnwindSafe for SetPhonebookParams
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