Struct zoom_api::phone_devices::PhoneDevices
source · [−]pub struct PhoneDevices {
pub client: Client,
}
Fields
client: Client
Implementations
sourceimpl PhoneDevices
impl PhoneDevices
sourcepub async fn list(
&self,
type_: ListPhoneDevicesType,
next_page_token: &str,
page_size: i64
) -> Result<Vec<ListPhoneDevicesResponse>>
pub async fn list(
&self,
type_: ListPhoneDevicesType,
next_page_token: &str,
page_size: i64
) -> Result<Vec<ListPhoneDevicesResponse>>
List devices.
This function performs a GET
to the /phone/devices
endpoint.
List all the desk phone devices that are configured with Zoom Phone on an account.
Scopes: phone:read:admin
Rate Limit Label: Medium
Prerequisites:
- Pro or a higher account with Zoom Phone license
- Account owner or admin permissions
Parameters:
type_: crate::types::ListPhoneDevicesType
– State of the device. The value should be eitherassigned
to list devices that have been assigned to user(s) orunassigned
to list devices that have not yet been assigned to any user in the Zoom account.next_page_token: &str
– The next page token is used to paginate through large result sets. A next page token will be returned whenever the set of available results exceeds the current page size. The expiration period for this token is 15 minutes.page_size: i64
– The number of records returned within a single API call.
sourcepub async fn list_all(
&self,
type_: ListPhoneDevicesType
) -> Result<Vec<ListPhoneDevicesResponse>>
pub async fn list_all(
&self,
type_: ListPhoneDevicesType
) -> Result<Vec<ListPhoneDevicesResponse>>
List devices.
This function performs a GET
to the /phone/devices
endpoint.
As opposed to list
, this function returns all the pages of the request at once.
List all the desk phone devices that are configured with Zoom Phone on an account.
Scopes: phone:read:admin
Rate Limit Label: Medium
Prerequisites:
- Pro or a higher account with Zoom Phone license
- Account owner or admin permissions
sourcepub async fn add(&self, body: &AddPhoneDeviceRequest) -> Result<()>
pub async fn add(&self, body: &AddPhoneDeviceRequest) -> Result<()>
Add a device.
This function performs a POST
to the /phone/devices
endpoint.
By default, all Zoom Phone users can make and receive calls using the Zoom desktop and mobile applications. Additionally, if a desk phone is required, use this API to add a desk phone and assign it to a user.
Prerequisites:
- Pro or a higher account with Zoom Phone license
- Account owner or admin permissions
- Supported device
Scopes:phone:write:admin
Rate Limit Label: Light
sourcepub async fn get_device(&self, device_id: &str) -> Result<GetDeviceResponse>
pub async fn get_device(&self, device_id: &str) -> Result<GetDeviceResponse>
Get device details.
This function performs a GET
to the /phone/devices/{deviceId}
endpoint.
Get detailed information about a specific desk phone device.
Scopes: phone:write:admin
Rate Limit Label: Light
Prerequisites:
- Pro or a higher account with Zoom Phone license
- Account owner or admin permissions
Parameters:
device_id: &str
– Unique Identifier of the device.
sourcepub async fn delete_device(&self, device_id: &str) -> Result<()>
pub async fn delete_device(&self, device_id: &str) -> Result<()>
Delete a device.
This function performs a DELETE
to the /phone/devices/{deviceId}
endpoint.
Remove a desk phone device from the Zoom Phone System Management.
Prerequisites:
- Pro or a higher account with Zoom Phone license
- Account owner or admin permissions
- Device must not have been assigned to a user.
Scopes:phone:write:admin
Rate Limit Label: Light
Parameters:
device_id: &str
– Unique Identifier of the device.
sourcepub async fn update_device(
&self,
device_id: &str,
body: &UpdateDeviceRequest
) -> Result<()>
pub async fn update_device(
&self,
device_id: &str,
body: &UpdateDeviceRequest
) -> Result<()>
Update a device.
This function performs a PATCH
to the /phone/devices/{deviceId}
endpoint.
Update information of a desk phone device.
Prerequisites:
- Pro or a higher account with Zoom Phone license
- Account owner or admin permissions
Scopes:phone:write:admin
Rate Limit Label: Light
Parameters:
device_id: &str
– Unique Identifier of the Device.
Auto Trait Implementations
impl !RefUnwindSafe for PhoneDevices
impl Send for PhoneDevices
impl Sync for PhoneDevices
impl Unpin for PhoneDevices
impl !UnwindSafe for PhoneDevices
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<T> FutureExt for T
impl<T> FutureExt for T
fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
fn vzip(self) -> V
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more