pub struct FieldExpectation {
pub entity: EntityKind,
pub path: String,
pub required: bool,
pub volatile: bool,
pub introduced_in: Version,
}Expand description
A single expected field, keyed to one entity kind.
Fields§
§entity: EntityKindThe entity kind whose rows must carry this path.
path: StringDotted path relative to the canonical row — e.g. client_id, or
native.alternativeNames[] for an array-valued native field. Array
segments end in [].
required: boolWhen true, every existing row of entity must carry path.
When false, the field is complete if at least one row carries it.
volatile: boolWhen true, the field is volatile — session/last-login style data
that changes between runs. It must be reported in the volatile
section, never in the config body, and never in the content hash.
introduced_in: VersionThe backend schema version that introduced the field, so a report can say concretely “introduced in 26.x and absent here”.
Trait Implementations§
Source§impl Clone for FieldExpectation
impl Clone for FieldExpectation
Source§impl Debug for FieldExpectation
impl Debug for FieldExpectation
Source§impl<'de> Deserialize<'de> for FieldExpectation
impl<'de> Deserialize<'de> for FieldExpectation
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
impl Eq for FieldExpectation
Source§impl PartialEq for FieldExpectation
impl PartialEq for FieldExpectation
Source§impl Serialize for FieldExpectation
impl Serialize for FieldExpectation
impl StructuralPartialEq for FieldExpectation
Auto Trait Implementations§
impl Freeze for FieldExpectation
impl RefUnwindSafe for FieldExpectation
impl Send for FieldExpectation
impl Sync for FieldExpectation
impl Unpin for FieldExpectation
impl UnsafeUnpin for FieldExpectation
impl UnwindSafe for FieldExpectation
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