pub struct JobV1 {Show 17 fields
pub job_id: ArtifactId,
pub kind: ArtifactKindV1,
pub namespace_id: ArtifactId,
pub idempotency_key: String,
pub attempt_family_id: ArtifactId,
pub source_kind: String,
pub occurrence_id: Option<ArtifactId>,
pub wake_signal_id: Option<ArtifactId>,
pub payload: Value,
pub payload_digest: String,
pub risk: CanonicalToolSideEffectClass,
pub state: JobStateV1,
pub lease_id: Option<ArtifactId>,
pub reason_codes: Vec<String>,
pub created_at: DateTime<Utc>,
pub updated_at: DateTime<Utc>,
pub cancelled_at: Option<DateTime<Utc>>,
}Fields§
§job_id: ArtifactId§kind: ArtifactKindV1§namespace_id: ArtifactId§idempotency_key: String§attempt_family_id: ArtifactId§source_kind: String§occurrence_id: Option<ArtifactId>§wake_signal_id: Option<ArtifactId>§payload: Value§payload_digest: String§risk: CanonicalToolSideEffectClass§state: JobStateV1§lease_id: Option<ArtifactId>§reason_codes: Vec<String>§created_at: DateTime<Utc>§updated_at: DateTime<Utc>§cancelled_at: Option<DateTime<Utc>>Implementations§
Source§impl JobV1
impl JobV1
pub fn new( namespace_id: ArtifactId, idempotency_key: impl Into<String>, source_kind: impl Into<String>, payload: Value, risk: CanonicalToolSideEffectClass, occurrence_id: Option<ArtifactId>, wake_signal_id: Option<ArtifactId>, ) -> Self
pub fn with_state( self, state: JobStateV1, lease_id: Option<ArtifactId>, reason: impl Into<String>, ) -> Self
Trait Implementations§
Source§impl<'de> Deserialize<'de> for JobV1
impl<'de> Deserialize<'de> for JobV1
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 JobV1
impl JsonSchema for JobV1
Source§fn schema_name() -> String
fn schema_name() -> String
The name of the generated JSON Schema. Read more
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 is_referenceable() -> bool
fn is_referenceable() -> bool
Whether JSON Schemas generated for this type should be re-used where possible using the
$ref keyword. Read moreimpl StructuralPartialEq for JobV1
Auto Trait Implementations§
impl Freeze for JobV1
impl RefUnwindSafe for JobV1
impl Send for JobV1
impl Sync for JobV1
impl Unpin for JobV1
impl UnsafeUnpin for JobV1
impl UnwindSafe for JobV1
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