pub struct TenantInfo {
pub admin_roles: Vec<String>,
pub allowed_clusters: Vec<String>,
}Expand description
Tenant policy info — admin roles and allowed clusters.
Mirrors Java’s org.apache.pulsar.common.policies.data.TenantInfoImpl —
the JSON keys (adminRoles, allowedClusters) match upstream verbatim.
Fields§
§admin_roles: Vec<String>Roles permitted to administrate the tenant.
allowed_clusters: Vec<String>Cluster names the tenant may use.
Trait Implementations§
Source§impl Clone for TenantInfo
impl Clone for TenantInfo
Source§fn clone(&self) -> TenantInfo
fn clone(&self) -> TenantInfo
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 TenantInfo
impl Debug for TenantInfo
Source§impl Default for TenantInfo
impl Default for TenantInfo
Source§fn default() -> TenantInfo
fn default() -> TenantInfo
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for TenantInfo
impl<'de> Deserialize<'de> for TenantInfo
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
Auto Trait Implementations§
impl Freeze for TenantInfo
impl RefUnwindSafe for TenantInfo
impl Send for TenantInfo
impl Sync for TenantInfo
impl Unpin for TenantInfo
impl UnsafeUnpin for TenantInfo
impl UnwindSafe for TenantInfo
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