#[repr(i32)]pub enum BrokerIsolation {
PrivateBroker = 0,
SharedBroker = 1,
ExplicitInstance = 2,
}Expand description
Broker isolation mode for a service.
Mirrors v1’s BrokerIsolation enum (broker_v1_service_def.proto)
so v2 service definitions can carry the same trust-grouping semantics
the v1 broker has used since #228. New isolation modes (if any) land
here; v1’s enum is FROZEN FOREVER.
Variants§
PrivateBroker = 0
DEFAULT - safe; private broker per service. Third-party consumers get isolation automatically with zero ceremony.
Opt-in to per-user shared broker. Recommended for first-party tools that benefit from shared infrastructure + cross-service ops.
ExplicitInstance = 2
Named broker instance, e.g. “ci-trusted” / “ci-untrusted” for explicit trust grouping.
Implementations§
Source§impl BrokerIsolation
impl BrokerIsolation
Sourcepub fn as_str_name(&self) -> &'static str
pub fn as_str_name(&self) -> &'static str
String value of the enum field names used in the ProtoBuf definition.
The values are not transformed in any way and thus are considered stable (if the ProtoBuf definition does not change) and safe for programmatic use.
Sourcepub fn from_str_name(value: &str) -> Option<Self>
pub fn from_str_name(value: &str) -> Option<Self>
Creates an enum from field names used in the ProtoBuf definition.
Trait Implementations§
Source§impl Clone for BrokerIsolation
impl Clone for BrokerIsolation
Source§fn clone(&self) -> BrokerIsolation
fn clone(&self) -> BrokerIsolation
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more