pub enum FieldClass {
Show 14 variants
UserSupplied,
ThirdParty,
AttributedClaim,
AuthenticatedAppField,
SystemOfRecord,
ModelDerived,
GeneratedText,
FreeTextDetail,
Id,
ContentDigest,
Enum,
Number,
PlanMetadata,
ModelIdentity,
}Expand description
Field classes (3.3.1). Every exportable field belongs to exactly one.
Variants§
UserSupplied
ThirdParty
AttributedClaim
AuthenticatedAppField
SystemOfRecord
ModelDerived
GeneratedText
Text carried by generation results (spec 037).
FreeTextDetail
Free text written at run time by an adapter, the runtime or the core.
Id
Identifiers that correlate.
ContentDigest
Unkeyed digests of content.
Enum
Closed vocabularies, booleans and plan-declared options.
Number
Counts, durations, costs and other numeric observations.
PlanMetadata
Identities and names the plan or definition authored.
ModelIdentity
Requested and served model identities and routes.
Implementations§
Source§impl FieldClass
impl FieldClass
Sourcepub const ALL: [FieldClass; 14]
pub const ALL: [FieldClass; 14]
Every class, in declaration order.
Sourcepub fn name(self) -> &'static str
pub fn name(self) -> &'static str
The class’s wire name, which is also the digest domain (3.4.5).
Sourcepub fn is_deny(self) -> bool
pub fn is_deny(self) -> bool
A deny class: a policy may expose its fields only by naming each one
in fields, never by a class-wide allow or truncate (3.4.2).
Sourcepub fn default_action(self) -> Action
pub fn default_action(self) -> Action
The default action (3.4.3).
Trait Implementations§
Source§impl Clone for FieldClass
impl Clone for FieldClass
impl Copy for FieldClass
Source§impl Debug for FieldClass
impl Debug for FieldClass
Source§impl<'de> Deserialize<'de> for FieldClass
impl<'de> Deserialize<'de> for FieldClass
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
Source§impl Display for FieldClass
impl Display for FieldClass
impl Eq for FieldClass
Source§impl From<ProvenanceClass> for FieldClass
impl From<ProvenanceClass> for FieldClass
Source§fn from(p: ProvenanceClass) -> Self
fn from(p: ProvenanceClass) -> Self
Converts to this type from the input type.
Source§impl Hash for FieldClass
impl Hash for FieldClass
Source§impl JsonSchema for FieldClass
impl JsonSchema for FieldClass
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreSource§impl Ord for FieldClass
impl Ord for FieldClass
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialEq for FieldClass
impl PartialEq for FieldClass
Source§impl PartialOrd for FieldClass
impl PartialOrd for FieldClass
Source§impl Serialize for FieldClass
impl Serialize for FieldClass
impl StructuralPartialEq for FieldClass
Auto Trait Implementations§
impl Freeze for FieldClass
impl RefUnwindSafe for FieldClass
impl Send for FieldClass
impl Sync for FieldClass
impl Unpin for FieldClass
impl UnsafeUnpin for FieldClass
impl UnwindSafe for FieldClass
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