Skip to main content

SettingsResource

Struct SettingsResource 

Source
pub struct SettingsResource { /* private fields */ }
Expand description

Global settings — /api/v2/settings, grouped by scope (app, telephony, audit, ui, retention). Each section has a read accessor and a set_* writer that return the section’s typed response.

Implementations§

Source§

impl SettingsResource

Source

pub async fn app_customer_logging( &self, ) -> Result<SettingsAppCustomerLoggingResponse, ManagerError>

Read the app customer-logging settings.

Source

pub async fn set_app_customer_logging( &self, body: SettingsAppCustomerLoggingRequest, ) -> Result<SettingsAppCustomerLoggingResponse, ManagerError>

Update the app customer-logging settings.

Source

pub async fn app_conversations( &self, ) -> Result<SettingsAppConversationsResponse, ManagerError>

Read the app conversations settings.

Source

pub async fn set_app_conversations( &self, body: SettingsAppConversationsRequest, ) -> Result<SettingsAppConversationsResponse, ManagerError>

Update the app conversations settings.

Source

pub async fn app_integrations( &self, ) -> Result<SettingsAppIntegrationsResponse, ManagerError>

Read the app integrations settings.

Source

pub async fn set_app_integrations( &self, body: SettingsAppIntegrationsRequest, ) -> Result<SettingsAppIntegrationsResponse, ManagerError>

Update the app integrations settings.

Source

pub async fn app_agent_status( &self, ) -> Result<SettingsAppAgentStatusResponse, ManagerError>

Read the app agent-status settings.

Source

pub async fn set_app_agent_status( &self, body: SettingsAppAgentStatusRequest, ) -> Result<SettingsAppAgentStatusResponse, ManagerError>

Update the app agent-status settings.

Source

pub async fn telephony_agent_inbound( &self, ) -> Result<SettingsTelephonyAgentInboundResponse, ManagerError>

Read the telephony agent-inbound settings.

Source

pub async fn set_telephony_agent_inbound( &self, body: SettingsTelephonyAgentInboundRequest, ) -> Result<SettingsTelephonyAgentInboundResponse, ManagerError>

Update the telephony agent-inbound settings.

Source

pub async fn telephony_agent_outbound( &self, ) -> Result<SettingsTelephonyAgentOutboundResponse, ManagerError>

Read the telephony agent-outbound settings.

Source

pub async fn set_telephony_agent_outbound( &self, body: SettingsTelephonyAgentOutboundRequest, ) -> Result<SettingsTelephonyAgentOutboundResponse, ManagerError>

Update the telephony agent-outbound settings.

Source

pub async fn telephony_agent_recording( &self, ) -> Result<SettingsTelephonyAgentRecordingResponse, ManagerError>

Read the telephony agent-recording settings.

Source

pub async fn set_telephony_agent_recording( &self, body: SettingsTelephonyAgentRecordingRequest, ) -> Result<SettingsTelephonyAgentRecordingResponse, ManagerError>

Update the telephony agent-recording settings.

Source

pub async fn telephony_agent_wrapup( &self, ) -> Result<SettingsTelephonyAgentWrapupResponse, ManagerError>

Read the telephony agent-wrapup settings.

Source

pub async fn set_telephony_agent_wrapup( &self, body: SettingsTelephonyAgentWrapupRequest, ) -> Result<SettingsTelephonyAgentWrapupResponse, ManagerError>

Update the telephony agent-wrapup settings.

Source

pub async fn telephony_post_call( &self, ) -> Result<SettingsTelephonyPostCallResponse, ManagerError>

Read the telephony post-call settings.

Source

pub async fn set_telephony_post_call( &self, body: SettingsTelephonyPostCallRequest, ) -> Result<SettingsTelephonyPostCallResponse, ManagerError>

Update the telephony post-call settings.

Source

pub async fn audit_default( &self, ) -> Result<SettingsAuditDefaultResponse, ManagerError>

Read the audit default settings.

Source

pub async fn set_audit_default( &self, body: SettingsAuditDefaultRequest, ) -> Result<SettingsAuditDefaultResponse, ManagerError>

Update the audit default settings.

Source

pub async fn ui_i18n(&self) -> Result<SettingsUiI18nResponse, ManagerError>

Read the UI i18n settings.

Source

pub async fn set_ui_i18n( &self, body: SettingsUiI18nRequest, ) -> Result<SettingsUiI18nResponse, ManagerError>

Update the UI i18n settings.

Source

pub async fn retention_periods( &self, ) -> Result<SettingsRetentionPeriodsResponse, ManagerError>

Read the retention periods settings.

Source

pub async fn set_retention_periods( &self, body: SettingsRetentionPeriodsRequest, ) -> Result<SettingsRetentionPeriodsResponse, ManagerError>

Update the retention periods settings.

Source

pub async fn list_all(&self) -> Result<SettingsListResponse, ManagerError>

List every customer setting across all scopes.

Source

pub async fn list_in_scope( &self, scope: &str, ) -> Result<SettingsListResponse, ManagerError>

List all customer settings in a scope.

Source

pub async fn clear( &self, scope: &str, key: &str, ) -> Result<SettingItemResponse, ManagerError>

Reset a single setting to its default.

Source

pub async fn clear_in_scope( &self, scope: &str, ) -> Result<SettingsListResponse, ManagerError>

Reset all settings in a scope to their defaults.

Source

pub async fn clear_all(&self) -> Result<SettingsListResponse, ManagerError>

Reset every customer setting across all scopes to their defaults.

Auto Trait Implementations§

Blanket Implementations§

Source§

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

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

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

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where 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 T
where 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> PolicyExt for T
where T: ?Sized,

Source§

fn and<P, B, E>(self, other: P) -> And<T, P>
where T: Sized + Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns Action::Follow only if self and other return Action::Follow. Read more
Source§

fn or<P, B, E>(self, other: P) -> Or<T, P>
where T: Sized + Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns Action::Follow if either self or other returns Action::Follow. Read more
Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

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

Source§

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 T
where U: TryFrom<T>,

Source§

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