#[repr(i32)]pub enum ArchetypeSource {
Unspecified = 0,
Ml = 1,
Provisional = 2,
}Expand description
Where an archetype came from. Lets clients distinguish trained ML clustering output from low-confidence provisional output generated for sandboxes and opted-in organizations before enough engagement data exists. Clients MUST render a low-confidence disclaimer for PROVISIONAL archetypes.
Variants§
Unspecified = 0
Ml = 1
Produced by the trained ML clustering pipeline (k-anonymized, DP-noised behavioral feature vectors).
Provisional = 2
Rule-based provisional output derived from coarse delivery/read/ ack activity (or a stable starter distribution for sandboxes with no activity). Low confidence, never written to the ML artifact path, and always superseded by ML output once available.
Implementations§
Source§impl ArchetypeSource
impl ArchetypeSource
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 ArchetypeSource
impl Clone for ArchetypeSource
Source§fn clone(&self) -> ArchetypeSource
fn clone(&self) -> ArchetypeSource
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreimpl Copy for ArchetypeSource
Source§impl Debug for ArchetypeSource
impl Debug for ArchetypeSource
Source§impl Default for ArchetypeSource
impl Default for ArchetypeSource
Source§fn default() -> ArchetypeSource
fn default() -> ArchetypeSource
impl Eq for ArchetypeSource
Source§impl From<ArchetypeSource> for i32
impl From<ArchetypeSource> for i32
Source§fn from(value: ArchetypeSource) -> i32
fn from(value: ArchetypeSource) -> i32
Source§impl Hash for ArchetypeSource
impl Hash for ArchetypeSource
Source§impl Ord for ArchetypeSource
impl Ord for ArchetypeSource
Source§fn cmp(&self, other: &ArchetypeSource) -> Ordering
fn cmp(&self, other: &ArchetypeSource) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Source§impl PartialEq for ArchetypeSource
impl PartialEq for ArchetypeSource
Source§fn eq(&self, other: &ArchetypeSource) -> bool
fn eq(&self, other: &ArchetypeSource) -> bool
self and other values to be equal, and is used by ==.Source§impl PartialOrd for ArchetypeSource
impl PartialOrd for ArchetypeSource
impl StructuralPartialEq for ArchetypeSource
Source§impl TryFrom<i32> for ArchetypeSource
impl TryFrom<i32> for ArchetypeSource
Source§type Error = UnknownEnumValue
type Error = UnknownEnumValue
Source§fn try_from(value: i32) -> Result<ArchetypeSource, UnknownEnumValue>
fn try_from(value: i32) -> Result<ArchetypeSource, UnknownEnumValue>
Auto Trait Implementations§
impl Freeze for ArchetypeSource
impl RefUnwindSafe for ArchetypeSource
impl Send for ArchetypeSource
impl Sync for ArchetypeSource
impl Unpin for ArchetypeSource
impl UnsafeUnpin for ArchetypeSource
impl UnwindSafe for ArchetypeSource
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
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
key and return true if they are equal.Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T in a tonic::Request