pub struct IrGenerationRequest {
pub prompt: String,
pub platform: String,
pub screen_width: f32,
pub screen_height: f32,
pub existing_node_count: Option<u32>,
pub allowed_components: Option<Vec<String>>,
}Expand description
A prompt-to-IR generation request.
AI models receive this context and produce an IrBatch.
Fields§
§prompt: StringNatural language description of the desired UI.
platform: StringTarget platform (affects layout defaults and capabilities).
screen_width: f32Screen dimensions for layout constraint.
screen_height: f32§existing_node_count: Option<u32>Optional: existing tree snapshot for incremental updates.
allowed_components: Option<Vec<String>>Optional: component palette to constrain generation.
Trait Implementations§
Source§impl Clone for IrGenerationRequest
impl Clone for IrGenerationRequest
Source§fn clone(&self) -> IrGenerationRequest
fn clone(&self) -> IrGenerationRequest
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for IrGenerationRequest
impl Debug for IrGenerationRequest
Source§impl<'de> Deserialize<'de> for IrGenerationRequest
impl<'de> Deserialize<'de> for IrGenerationRequest
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 IrGenerationRequest
impl RefUnwindSafe for IrGenerationRequest
impl Send for IrGenerationRequest
impl Sync for IrGenerationRequest
impl Unpin for IrGenerationRequest
impl UnsafeUnpin for IrGenerationRequest
impl UnwindSafe for IrGenerationRequest
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