pub struct ProvisionWorkspaceRequest {
pub name: String,
pub source_workspace_id: Option<String>,
pub inherit_with_new_number: Option<bool>,
pub verification: Option<SubmitVerificationRequest>,
pub credit_amount: Option<i32>,
pub credit_source_workspace_id: Option<String>,
pub key_name: Option<String>,
pub key_type: Option<String>,
pub webhook_url: Option<String>,
pub generate_opt_in_page: Option<bool>,
}Fields§
§name: String§source_workspace_id: Option<String>§inherit_with_new_number: Option<bool>§verification: Option<SubmitVerificationRequest>§credit_amount: Option<i32>§credit_source_workspace_id: Option<String>§key_name: Option<String>§key_type: Option<String>§webhook_url: Option<String>§generate_opt_in_page: Option<bool>Implementations§
Source§impl ProvisionWorkspaceRequest
impl ProvisionWorkspaceRequest
pub fn new(name: impl Into<String>) -> Self
pub fn source_workspace_id(self, id: impl Into<String>) -> Self
pub fn key_name(self, name: impl Into<String>) -> Self
pub fn key_type(self, key_type: impl Into<String>) -> Self
pub fn webhook_url(self, url: impl Into<String>) -> Self
pub fn credit_amount(self, amount: i32) -> Self
pub fn credit_source_workspace_id(self, id: impl Into<String>) -> Self
pub fn inherit_with_new_number(self, value: bool) -> Self
pub fn generate_opt_in_page(self, value: bool) -> Self
Trait Implementations§
Source§impl Clone for ProvisionWorkspaceRequest
impl Clone for ProvisionWorkspaceRequest
Source§fn clone(&self) -> ProvisionWorkspaceRequest
fn clone(&self) -> ProvisionWorkspaceRequest
Returns a duplicate of the value. Read more
1.0.0 · 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 ProvisionWorkspaceRequest
impl Debug for ProvisionWorkspaceRequest
Auto Trait Implementations§
impl Freeze for ProvisionWorkspaceRequest
impl RefUnwindSafe for ProvisionWorkspaceRequest
impl Send for ProvisionWorkspaceRequest
impl Sync for ProvisionWorkspaceRequest
impl Unpin for ProvisionWorkspaceRequest
impl UnsafeUnpin for ProvisionWorkspaceRequest
impl UnwindSafe for ProvisionWorkspaceRequest
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