pub struct Authenticate {
pub request_id: String,
pub protocol_version: u32,
pub tenant_id: String,
pub client_version: Option<String>,
pub client_id: Option<String>,
pub dev_scopes: Option<Vec<String>>,
pub credentials: Credentials,
}Expand description
Client to server: authenticate to a tenant. The first message on a connection.
client_id is a hint for development servers only: a production server takes the client’s
identity from the credential (its subject) and ignores or refuses a self-claimed one. dev_scopes
is likewise development-only: ask for exactly these scopes ([] for none) instead of administrator.
Unknown fields are ignored, because the credential fields are flattened next to the others.
Fields§
§request_id: String§protocol_version: u32§tenant_id: String§client_version: Option<String>§client_id: Option<String>§dev_scopes: Option<Vec<String>>§credentials: CredentialsImplementations§
Trait Implementations§
Source§impl Clone for Authenticate
impl Clone for Authenticate
Source§impl Debug for Authenticate
impl Debug for Authenticate
Source§impl<'de> Deserialize<'de> for Authenticate
impl<'de> Deserialize<'de> for Authenticate
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for Authenticate
Source§impl PartialEq for Authenticate
impl PartialEq for Authenticate
Source§impl Serialize for Authenticate
impl Serialize for Authenticate
impl StructuralPartialEq for Authenticate
Auto Trait Implementations§
impl Freeze for Authenticate
impl RefUnwindSafe for Authenticate
impl Send for Authenticate
impl Sync for Authenticate
impl Unpin for Authenticate
impl UnsafeUnpin for Authenticate
impl UnwindSafe for Authenticate
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