pub struct TextToModelRequest {Show 16 fields
pub prompt: String,
pub negative_prompt: Option<String>,
pub model_version: Option<String>,
pub face_limit: Option<i32>,
pub texture: Option<bool>,
pub pbr: Option<bool>,
pub image_seed: Option<i32>,
pub model_seed: Option<i32>,
pub texture_seed: Option<i32>,
pub texture_quality: Option<Quality>,
pub geometry_quality: Option<Quality>,
pub auto_size: Option<bool>,
pub quad: Option<bool>,
pub compress: Option<CompressionMode>,
pub generate_parts: Option<bool>,
pub smart_low_poly: Option<bool>,
}Expand description
Request body for text_to_model. Wire type: text_to_model.
See the Python SDK Client.text_to_model for the authoritative field list.
Fields§
§prompt: StringPrompt text. Required.
negative_prompt: Option<String>Negative prompt (things to avoid).
model_version: Option<String>Model version string; see versions::text_image.
face_limit: Option<i32>Target face count.
texture: Option<bool>Generate a texture? (default true server-side)
pbr: Option<bool>Physically-based shading?
image_seed: Option<i32>Seed for the initial reference image.
model_seed: Option<i32>Seed for the model generation.
texture_seed: Option<i32>Seed for texture generation.
texture_quality: Option<Quality>Texture quality preset.
geometry_quality: Option<Quality>Geometry quality preset.
auto_size: Option<bool>Auto-size the output mesh.
quad: Option<bool>Produce a quad mesh (subdivision-ready).
compress: Option<CompressionMode>Geometry compression option.
generate_parts: Option<bool>Emit part decomposition.
smart_low_poly: Option<bool>Route through the smart-lowpoly pipeline after generation.
Trait Implementations§
Source§impl Clone for TextToModelRequest
impl Clone for TextToModelRequest
Source§fn clone(&self) -> TextToModelRequest
fn clone(&self) -> TextToModelRequest
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 TextToModelRequest
impl Debug for TextToModelRequest
Source§impl Default for TextToModelRequest
impl Default for TextToModelRequest
Source§fn default() -> TextToModelRequest
fn default() -> TextToModelRequest
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for TextToModelRequest
impl<'de> Deserialize<'de> for TextToModelRequest
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 TextToModelRequest
impl JsonSchema for TextToModelRequest
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 moreAuto Trait Implementations§
impl Freeze for TextToModelRequest
impl RefUnwindSafe for TextToModelRequest
impl Send for TextToModelRequest
impl Sync for TextToModelRequest
impl Unpin for TextToModelRequest
impl UnsafeUnpin for TextToModelRequest
impl UnwindSafe for TextToModelRequest
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