pub struct ImageToModelRequest {Show 16 fields
pub image: ImageInput,
pub model_version: Option<String>,
pub face_limit: Option<i32>,
pub texture: Option<bool>,
pub pbr: Option<bool>,
pub model_seed: Option<i32>,
pub texture_seed: Option<i32>,
pub texture_quality: Option<TextureQuality>,
pub geometry_quality: Option<GeometryQuality>,
pub texture_alignment: Option<TextureAlignment>,
pub auto_size: Option<bool>,
pub orientation: Option<Orientation>,
pub quad: Option<bool>,
pub compress: Option<CompressionMode>,
pub generate_parts: Option<bool>,
pub smart_low_poly: Option<bool>,
}Expand description
Request body for image_to_model. Wire type: image_to_model.
Fields§
§image: ImageInputThe input image — on the wire this is serialized as file, not image.
model_version: Option<String>Model version string; see versions::text_image.
face_limit: Option<i32>Target face count.
texture: Option<bool>Generate a texture.
pbr: Option<bool>PBR shading.
model_seed: Option<i32>Seed for model generation.
texture_seed: Option<i32>Seed for texture generation.
texture_quality: Option<TextureQuality>Texture quality preset.
geometry_quality: Option<GeometryQuality>Geometry quality preset.
texture_alignment: Option<TextureAlignment>Texture alignment strategy.
auto_size: Option<bool>Auto-size the output mesh.
orientation: Option<Orientation>Output orientation hint.
quad: Option<bool>Produce a quad mesh.
compress: Option<CompressionMode>Geometry compression option.
generate_parts: Option<bool>Emit part decomposition.
smart_low_poly: Option<bool>Route through smart-lowpoly.
Trait Implementations§
Source§impl Clone for ImageToModelRequest
impl Clone for ImageToModelRequest
Source§fn clone(&self) -> ImageToModelRequest
fn clone(&self) -> ImageToModelRequest
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 Debug for ImageToModelRequest
impl Debug for ImageToModelRequest
Source§impl<'de> Deserialize<'de> for ImageToModelRequest
impl<'de> Deserialize<'de> for ImageToModelRequest
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 ImageToModelRequest
impl JsonSchema for ImageToModelRequest
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 ImageToModelRequest
impl RefUnwindSafe for ImageToModelRequest
impl Send for ImageToModelRequest
impl Sync for ImageToModelRequest
impl Unpin for ImageToModelRequest
impl UnsafeUnpin for ImageToModelRequest
impl UnwindSafe for ImageToModelRequest
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