pub struct Management {
pub config: ClientConfig,
pub client: ClientWithMiddleware,
}Expand description
Async HTTP client for the Contentstack Content Management API.
Holds a connection pool and injects the required authentication headers on every request automatically.
§Example
use contentstack_api_client_rs::Management;
let client = Management::new("my_api_key", "my_management_token", None);Fields§
§config: ClientConfig§client: ClientWithMiddlewareImplementations§
Source§impl Management
impl Management
Sourcepub fn new(
api_key: &str,
management_token: &str,
opts: Option<ClientOptions>,
) -> Self
pub fn new( api_key: &str, management_token: &str, opts: Option<ClientOptions>, ) -> Self
Creates a new Management client.
§Arguments
api_key- Your stack’s API keymanagement_token- Stack management tokenopts- Optional configuration overrides (region, timeout, max connections)
§Example
use contentstack_api_client_rs::Management;
let client = Management::new("my_api_key", "my_management_token", None);Auto Trait Implementations§
impl Freeze for Management
impl !RefUnwindSafe for Management
impl Send for Management
impl Sync for Management
impl Unpin for Management
impl UnsafeUnpin for Management
impl !UnwindSafe for Management
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