pub struct CcgConfig {
pub client_id: String,
pub client_secret: String,
pub enterprise_id: String,
pub user_id: Option<String>,
pub token_url: Option<String>,
}Expand description
The Client Credentials Grant config: server-to-server auth with no signing
key. Set exactly one subject — enterprise_id for the service account, or
user_id to act as a managed user. Derives Default so the optional
user_id/token_url can be elided with ..Default::default().
Fields§
§client_id: String§client_secret: String§enterprise_id: String§user_id: Option<String>Optional: act as a managed user instead of the enterprise service account.
token_url: Option<String>Optional: defaults to Box’s token endpoint (custom deployments).
Trait Implementations§
Auto Trait Implementations§
impl Freeze for CcgConfig
impl RefUnwindSafe for CcgConfig
impl Send for CcgConfig
impl Sync for CcgConfig
impl Unpin for CcgConfig
impl UnsafeUnpin for CcgConfig
impl UnwindSafe for CcgConfig
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