pub struct Credential {
pub provider: ProviderId,
pub raw: Value,
}Expand description
One tool’s login document, carried without being understood.
The provider it came from travels with it, so a value crossing this boundary can always say which shape it is, and a credential can never be handed to the wrong engine by accident. What is inside is that engine’s business and nothing else’s.
Fields§
§provider: ProviderId§raw: ValueImplementations§
Source§impl Credential
impl Credential
pub fn new(provider: ProviderId, raw: Value) -> Credential
Trait Implementations§
Source§impl Clone for Credential
impl Clone for Credential
Source§impl Debug for Credential
impl Debug for Credential
Source§impl PartialEq for Credential
impl PartialEq for Credential
impl StructuralPartialEq for Credential
Auto Trait Implementations§
impl Freeze for Credential
impl RefUnwindSafe for Credential
impl Send for Credential
impl Sync for Credential
impl Unpin for Credential
impl UnsafeUnpin for Credential
impl UnwindSafe for Credential
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