pub struct JobClaim {
pub job_id: String,
pub game_id: String,
pub asset_name: String,
pub model: String,
pub vram_gb_estimate: f32,
pub prompt: String,
pub ext: String,
pub task: Option<Task>,
}Fields§
§job_id: String§game_id: String§asset_name: String§model: String§vram_gb_estimate: f32§prompt: StringLegacy field (image prompt). Ignored when task is present.
ext: StringLegacy field (image extension). Ignored when task is present.
task: Option<Task>New: structured task spec. When absent the worker reconstructs
an Task::Image from prompt + ext above for backward compat.
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for JobClaim
impl<'de> Deserialize<'de> for JobClaim
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
Auto Trait Implementations§
impl Freeze for JobClaim
impl RefUnwindSafe for JobClaim
impl Send for JobClaim
impl Sync for JobClaim
impl Unpin for JobClaim
impl UnsafeUnpin for JobClaim
impl UnwindSafe for JobClaim
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