pub struct AppliedRecord {
pub schema: i64,
pub machine_id: String,
pub apply_id: String,
pub time: Datetime,
pub store_revision: String,
pub trigger: ApplyTrigger,
pub outcome: ApplyOutcome,
pub targets: Vec<AppliedTarget>,
pub extra: Table,
}Fields§
§schema: i64Schema version; always 1.
machine_id: StringULID; equals the file name without .applied.toml.
apply_id: StringULID of the apply run.
time: DatetimeWhen the run finished (TOML offset date-time).
store_revision: StringStore commit that was applied.
trigger: ApplyTrigger§outcome: ApplyOutcome§targets: Vec<AppliedTarget>One record per target file.
extra: TableImplementations§
Source§impl AppliedRecord
impl AppliedRecord
Sourcepub fn validate(&self, file_id: Option<&str>) -> Diagnostics
pub fn validate(&self, file_id: Option<&str>) -> Diagnostics
Validates per SPEC 8.7. file_id is the file name without
.applied.toml.
Trait Implementations§
Source§impl Clone for AppliedRecord
impl Clone for AppliedRecord
Source§impl Debug for AppliedRecord
impl Debug for AppliedRecord
Source§impl<'de> Deserialize<'de> for AppliedRecord
impl<'de> Deserialize<'de> for AppliedRecord
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 JsonSchema for AppliedRecord
impl JsonSchema for AppliedRecord
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 PartialEq for AppliedRecord
impl PartialEq for AppliedRecord
Source§impl Serialize for AppliedRecord
impl Serialize for AppliedRecord
Source§impl StoreModel for AppliedRecord
impl StoreModel for AppliedRecord
Source§const SCHEMA_NAME: &'static str = "applied"
const SCHEMA_NAME: &'static str = "applied"
File stem of the generated JSON Schema:
docs/schema/<NAME>.schema.json.impl StructuralPartialEq for AppliedRecord
Auto Trait Implementations§
impl Forget for AppliedRecord
impl Freeze for AppliedRecordwhere
*const u8 is !null: Freeze,
PhantomData<u8>: Freeze,
PhantomData<AppliedTarget>: Freeze,
*const LeafNode<String, Value> is !null: Freeze,
PhantomData<(Owned, LeafOrInternal)>: Freeze,
PhantomData<Box<(String, Value)>>: Freeze,
impl Move for AppliedRecord
impl RefUnwindSafe for AppliedRecord
impl Send for AppliedRecord
impl Sync for AppliedRecord
impl Unpin for AppliedRecord
impl UnsafeUnpin for AppliedRecordwhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<AppliedTarget>: UnsafeUnpin,
*const LeafNode<String, Value> is !null: UnsafeUnpin,
PhantomData<(Owned, LeafOrInternal)>: UnsafeUnpin,
PhantomData<Box<(String, Value)>>: UnsafeUnpin,
impl UnwindSafe for AppliedRecord
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