Struct kittycad_modeling_cmds::each_cmd::SketchModeEnable
source · pub struct SketchModeEnable {
pub plane_id: Uuid,
pub ortho: bool,
pub animated: bool,
pub disable_camera_with_plane: Option<Point3d<f64>>,
}
Expand description
Enable sketch mode on the given plane.
If you want to sketch on a face, use enable_sketch_mode
instead.
Fields§
§plane_id: Uuid
Sketch on this plane.
ortho: bool
Use an orthographic camera.
animated: bool
Animate the transition to sketch mode.
disable_camera_with_plane: Option<Point3d<f64>>
Disable the camera entirely for sketch mode and sketch on a plane (this would be the normal of that plane).
Trait Implementations§
source§impl Clone for SketchModeEnable
impl Clone for SketchModeEnable
source§fn clone(&self) -> SketchModeEnable
fn clone(&self) -> SketchModeEnable
Returns a copy 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 SketchModeEnable
impl Debug for SketchModeEnable
source§impl<'de> Deserialize<'de> for SketchModeEnable
impl<'de> Deserialize<'de> for SketchModeEnable
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 FromMemory for SketchModeEnable
impl FromMemory for SketchModeEnable
source§fn from_memory<I, M>(fields: &mut I, mem: &mut M) -> Result<Self, MemoryError>
fn from_memory<I, M>(fields: &mut I, mem: &mut M) -> Result<Self, MemoryError>
Read this type from memory, getting each field of the type from a different memory address.
source§impl JsonSchema for SketchModeEnable
impl JsonSchema for SketchModeEnable
source§fn schema_name() -> String
fn schema_name() -> String
The name of the generated JSON Schema. Read more
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(gen: &mut SchemaGenerator) -> Schema
fn json_schema(gen: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
source§fn is_referenceable() -> bool
fn is_referenceable() -> bool
Whether JSON Schemas generated for this type should be re-used where possible using the
$ref
keyword. Read moreAuto Trait Implementations§
impl RefUnwindSafe for SketchModeEnable
impl Send for SketchModeEnable
impl Sync for SketchModeEnable
impl Unpin for SketchModeEnable
impl UnwindSafe for SketchModeEnable
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