Struct ModelOptions
pub struct ModelOptions {
pub transform: Transform,
pub unique_material: Option<bool>,
pub material: Option<String>,
pub identifier: Option<String>,
}Expand description
Options for adding a model object.
Fields§
§transform: TransformThe common transform parameters.
unique_material: Option<bool>Whether material properties are uniquely copied for this object.
Ignored when material is set: the model uses that material for all
of its meshes instead of its own (cloned or shared) baked-in materials.
material: Option<String>The identifier of a separately created material (e.g. via
Visu::add_mesh_standard_material
or Visu::add_mesh_basic_material)
to apply recursively to every mesh in the model, replacing whatever
materials were baked into the model asset itself.
identifier: Option<String>The explicit identifier; assigned by the server when None.
Trait Implementations§
§impl Clone for ModelOptions
impl Clone for ModelOptions
§fn clone(&self) -> ModelOptions
fn clone(&self) -> ModelOptions
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 more§impl Debug for ModelOptions
impl Debug for ModelOptions
§impl Default for ModelOptions
impl Default for ModelOptions
§fn default() -> ModelOptions
fn default() -> ModelOptions
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for ModelOptions
impl RefUnwindSafe for ModelOptions
impl Send for ModelOptions
impl Sync for ModelOptions
impl Unpin for ModelOptions
impl UnwindSafe for ModelOptions
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