pub struct ClientConfig {
pub base_url: String,
pub api_key: String,
pub management_token: String,
pub delivery_token: String,
pub environment: Option<String>,
pub timeout: Duration,
pub max_connections: usize,
pub region: Region,
}Fields§
§base_url: String§api_key: String§management_token: String§delivery_token: String§environment: Option<String>§timeout: Duration§max_connections: usize§region: RegionImplementations§
Source§impl ClientConfig
impl ClientConfig
pub fn delivery( api_key: &str, delivery_token: &str, environment: &str, opts: Option<ClientOptions>, ) -> Self
Sourcepub fn management(
api_key: &str,
management_token: &str,
opts: Option<ClientOptions>,
) -> Self
pub fn management( api_key: &str, management_token: &str, opts: Option<ClientOptions>, ) -> Self
Builds a ClientConfig for the Management API.
Defaults to AWS NA region (https://api.contentstack.io) if no
base_url or region override is provided. Management API requests
do not use an environment, so that field is left empty.
§Arguments
api_key- Your stack’s API keymanagement_token- Stack management tokenopts- Optional configuration overrides (region, timeout, max connections)
Auto Trait Implementations§
impl Freeze for ClientConfig
impl RefUnwindSafe for ClientConfig
impl Send for ClientConfig
impl Sync for ClientConfig
impl Unpin for ClientConfig
impl UnsafeUnpin for ClientConfig
impl UnwindSafe for ClientConfig
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