#[non_exhaustive]pub struct CreateResourceInput {
pub organization_id: Option<String>,
pub name: Option<String>,
pub type: Option<ResourceType>,
pub description: Option<String>,
pub hidden_from_global_address_list: Option<bool>,
}
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.organization_id: Option<String>
The identifier associated with the organization for which the resource is created.
name: Option<String>
The name of the new resource.
type: Option<ResourceType>
The type of the new resource. The available types are equipment
and room
.
description: Option<String>
Resource description.
If this parameter is enabled, the resource will be hidden from the address book.
Implementations§
source§impl CreateResourceInput
impl CreateResourceInput
sourcepub fn organization_id(&self) -> Option<&str>
pub fn organization_id(&self) -> Option<&str>
The identifier associated with the organization for which the resource is created.
sourcepub fn type(&self) -> Option<&ResourceType>
pub fn type(&self) -> Option<&ResourceType>
The type of the new resource. The available types are equipment
and room
.
sourcepub fn description(&self) -> Option<&str>
pub fn description(&self) -> Option<&str>
Resource description.
If this parameter is enabled, the resource will be hidden from the address book.
source§impl CreateResourceInput
impl CreateResourceInput
sourcepub fn builder() -> CreateResourceInputBuilder
pub fn builder() -> CreateResourceInputBuilder
Creates a new builder-style object to manufacture CreateResourceInput
.
Trait Implementations§
source§impl Clone for CreateResourceInput
impl Clone for CreateResourceInput
source§fn clone(&self) -> CreateResourceInput
fn clone(&self) -> CreateResourceInput
Returns a copy 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 CreateResourceInput
impl Debug for CreateResourceInput
source§impl PartialEq for CreateResourceInput
impl PartialEq for CreateResourceInput
source§fn eq(&self, other: &CreateResourceInput) -> bool
fn eq(&self, other: &CreateResourceInput) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for CreateResourceInput
Auto Trait Implementations§
impl RefUnwindSafe for CreateResourceInput
impl Send for CreateResourceInput
impl Sync for CreateResourceInput
impl Unpin for CreateResourceInput
impl UnwindSafe for CreateResourceInput
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
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Creates a shared type from an unshared type.