pub struct Profile {
pub name: String,
pub host: Url,
pub account_id: Option<String>,
pub workspace_id: Option<String>,
pub client_id: String,
pub group_id: Option<String>,
pub scopes: Vec<String>,
pub target: TargetKind,
pub auth_kind: AuthKind,
/* private fields */
}Fields§
§name: String§host: Url§account_id: Option<String>§workspace_id: Option<String>§client_id: String§group_id: Option<String>Optional group role requested by M2M token generation.
scopes: Vec<String>§target: TargetKind§auth_kind: AuthKindAuthentication strategy resolved for this profile.
Implementations§
Source§impl Profile
impl Profile
pub fn from_sources(options: ProfileOptions) -> Result<Self>
pub fn cache_key(&self) -> String
pub fn effective_scopes(&self) -> Vec<String>
pub fn machine_scopes(&self) -> Vec<String>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Profile
impl RefUnwindSafe for Profile
impl Send for Profile
impl Sync for Profile
impl Unpin for Profile
impl UnsafeUnpin for Profile
impl UnwindSafe for Profile
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