pub struct ChainValidationResponse {
pub model: String,
pub width: u32,
pub height: u32,
pub fps: u32,
pub motion_tail_frames: u32,
pub stage_count: u32,
pub estimated_total_frames: u32,
pub estimated_duration_ms: u64,
pub stages: Vec<ChainValidationStage>,
pub warnings: Vec<String>,
pub vram_estimate: Option<VramEstimate>,
}Expand description
Read-only normalized plan returned by
POST /api/generate/chain/validate. This endpoint never creates a durable
job or starts downloads.
Fields§
§model: String§width: u32§height: u32§fps: u32§motion_tail_frames: u32§stage_count: u32§estimated_total_frames: u32§estimated_duration_ms: u64§stages: Vec<ChainValidationStage>§warnings: Vec<String>§vram_estimate: Option<VramEstimate>Reserved until the server’s chain estimator is populated. Kept in the stable response now so clients can render it additively when available.
Implementations§
Source§impl ChainValidationResponse
impl ChainValidationResponse
pub fn from_normalized(req: &ChainRequest, warnings: Vec<String>) -> Self
Sourcepub fn with_vram_estimate(self, estimate: Option<VramEstimate>) -> Self
pub fn with_vram_estimate(self, estimate: Option<VramEstimate>) -> Self
Attach an advisory VRAM estimate. Separate from from_normalized
because the estimate needs live device facts the core crate cannot see.
Trait Implementations§
Source§impl Clone for ChainValidationResponse
impl Clone for ChainValidationResponse
Source§fn clone(&self) -> ChainValidationResponse
fn clone(&self) -> ChainValidationResponse
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl ComposeSchema for ChainValidationResponse
impl ComposeSchema for ChainValidationResponse
Source§impl Debug for ChainValidationResponse
impl Debug for ChainValidationResponse
Source§impl<'de> Deserialize<'de> for ChainValidationResponse
impl<'de> Deserialize<'de> for ChainValidationResponse
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 Serialize for ChainValidationResponse
impl Serialize for ChainValidationResponse
Auto Trait Implementations§
impl Freeze for ChainValidationResponse
impl RefUnwindSafe for ChainValidationResponse
impl Send for ChainValidationResponse
impl Sync for ChainValidationResponse
impl Unpin for ChainValidationResponse
impl UnsafeUnpin for ChainValidationResponse
impl UnwindSafe for ChainValidationResponse
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