pub struct UpdateNumberRequest {
pub is_default: Option<bool>,
pub pending_cancellation: Option<bool>,
}Expand description
Request body for NumbersResource::update.
Supply at least one field. Only these two mutations are supported:
is_default: true— make this number the workspace’s default sender. The number must beactive, or the call fails with aninvalid_statevalidation error.pending_cancellation: false— cancel a previously scheduled release and keep the number.
A body with neither field is rejected before it reaches the API. Build one
with UpdateNumberRequest::make_default and/or
UpdateNumberRequest::keep.
Fields§
§is_default: Option<bool>Set to true to make this the workspace’s default sender (requires an
active number).
pending_cancellation: Option<bool>Set to false to cancel a scheduled release and keep the number.
Implementations§
Trait Implementations§
Source§impl Clone for UpdateNumberRequest
impl Clone for UpdateNumberRequest
Source§fn clone(&self) -> UpdateNumberRequest
fn clone(&self) -> UpdateNumberRequest
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 UpdateNumberRequest
impl Debug for UpdateNumberRequest
Source§impl Default for UpdateNumberRequest
impl Default for UpdateNumberRequest
Source§fn default() -> UpdateNumberRequest
fn default() -> UpdateNumberRequest
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for UpdateNumberRequest
impl RefUnwindSafe for UpdateNumberRequest
impl Send for UpdateNumberRequest
impl Sync for UpdateNumberRequest
impl Unpin for UpdateNumberRequest
impl UnsafeUnpin for UpdateNumberRequest
impl UnwindSafe for UpdateNumberRequest
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