pub struct PhoneDevices {
    pub client: Client,
}

Fields§

§client: Client

Implementations§

source§

impl PhoneDevices

source

pub async fn list( &self, type_: ListPhoneDevicesType, next_page_token: &str, page_size: i64 ) -> Result<Response<Vec<ListPhoneDevicesResponse>>, ClientError>

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 either assigned to list devices that have been assigned to user(s) or unassigned 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.
source

pub async fn list_all( &self, type_: ListPhoneDevicesType ) -> Result<Response<Vec<ListPhoneDevicesResponse>>, ClientError>

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
source

pub async fn add( &self, body: &AddPhoneDeviceRequest ) -> Result<Response<()>, ClientError>

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

source

pub async fn get_device( &self, device_id: &str ) -> Result<Response<GetDeviceResponse>, ClientError>

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.
source

pub async fn delete_device( &self, device_id: &str ) -> Result<Response<()>, ClientError>

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.
source

pub async fn update_device( &self, device_id: &str, body: &UpdateDeviceRequest ) -> Result<Response<()>, ClientError>

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§

Blanket Implementations§

source§

impl<T> Any for Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T> Instrument for T

source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for Twhere U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T, U> TryFrom<U> for Twhere U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for Twhere V: MultiLane<T>,

§

fn vzip(self) -> V

source§

impl<T> WithSubscriber for T

source§

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
source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more