pub struct TenantContext {
pub org_id: String,
pub workspace_id: String,
pub actor_id: Option<String>,
pub source: TenantSource,
}Fields§
§org_id: String§workspace_id: String§actor_id: Option<String>§source: TenantSourceImplementations§
Source§impl TenantContext
impl TenantContext
pub fn local_implicit() -> TenantContext
pub fn explicit( org_id: impl Into<String>, workspace_id: impl Into<String>, actor_id: Option<String>, ) -> TenantContext
pub fn is_local_implicit(&self) -> bool
Trait Implementations§
Source§impl Clone for TenantContext
impl Clone for TenantContext
Source§fn clone(&self) -> TenantContext
fn clone(&self) -> TenantContext
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for TenantContext
impl Debug for TenantContext
Source§impl Default for TenantContext
impl Default for TenantContext
Source§fn default() -> TenantContext
fn default() -> TenantContext
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for TenantContext
impl<'de> Deserialize<'de> for TenantContext
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<TenantContext, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<TenantContext, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl From<LocalImplicitTenant> for TenantContext
impl From<LocalImplicitTenant> for TenantContext
Source§fn from(_: LocalImplicitTenant) -> TenantContext
fn from(_: LocalImplicitTenant) -> TenantContext
Converts to this type from the input type.
Source§impl PartialEq for TenantContext
impl PartialEq for TenantContext
Source§impl Serialize for TenantContext
impl Serialize for TenantContext
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl Eq for TenantContext
impl StructuralPartialEq for TenantContext
Auto Trait Implementations§
impl Freeze for TenantContext
impl RefUnwindSafe for TenantContext
impl Send for TenantContext
impl Sync for TenantContext
impl Unpin for TenantContext
impl UnsafeUnpin for TenantContext
impl UnwindSafe for TenantContext
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