pub struct AuthenticatedClient {
pub app_client_id: String,
pub principal: ClientPrincipal,
pub credential_id: Option<String>,
}Expand description
appClientId identifies the installation, credentialId its current
enrollment. Neither is a secret. A connection ID is a separate routing key.
Personal Pods have a User principal and an enrollment credential, just as
Space Pods do; a normal user login need not have an enrollment credential.
Fields§
§app_client_id: String§principal: ClientPrincipal§credential_id: Option<String>Implementations§
Source§impl AuthenticatedClient
impl AuthenticatedClient
Sourcepub fn validate_for(
&self,
tenant_id: &str,
space_id: &str,
) -> Result<(), ClientIdentityError>
pub fn validate_for( &self, tenant_id: &str, space_id: &str, ) -> Result<(), ClientIdentityError>
Structural and target binding validation, after credential verification. A User principal still requires current membership/role authorization at the operation boundary. This check never grants access by itself.
Sourcepub fn conversation_surface(
&self,
tenant_id: &str,
space_id: &str,
) -> Result<ConversationSurface, ClientIdentityError>
pub fn conversation_surface( &self, tenant_id: &str, space_id: &str, ) -> Result<ConversationSurface, ClientIdentityError>
Resolve the authenticated Client’s catalog. Device/enrollment identity is validated but never included in the shared Space group’s storage key.
Sourcepub fn user_id(&self) -> Option<&str>
pub fn user_id(&self) -> Option<&str>
No initializer/owner fallback: a Space Client has no acting user.
pub fn is_space_client(&self) -> bool
Trait Implementations§
Source§impl Clone for AuthenticatedClient
impl Clone for AuthenticatedClient
Source§impl Debug for AuthenticatedClient
impl Debug for AuthenticatedClient
Source§impl<'de> Deserialize<'de> for AuthenticatedClient
impl<'de> Deserialize<'de> for AuthenticatedClient
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 AuthenticatedClient
Source§impl PartialEq for AuthenticatedClient
impl PartialEq for AuthenticatedClient
Source§impl Serialize for AuthenticatedClient
impl Serialize for AuthenticatedClient
impl StructuralPartialEq for AuthenticatedClient
Auto Trait Implementations§
impl Forget for AuthenticatedClient
impl Freeze for AuthenticatedClient
impl RefUnwindSafe for AuthenticatedClient
impl Send for AuthenticatedClient
impl Sync for AuthenticatedClient
impl Unpin for AuthenticatedClient
impl UnsafeUnpin for AuthenticatedClient
impl UnwindSafe for AuthenticatedClient
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.