Trait kittycad_modeling_cmds::ModelingCmdVariant

source ·
pub trait ModelingCmdVariant: Serialize {
    type Output: ModelingCmdOutput;

    // Required methods
    fn into_enum(self) -> ModelingCmd;
    fn name() -> &'static str;
}
Expand description

Some modeling command executed on the KittyCAD engine.

Required Associated Types§

source

type Output: ModelingCmdOutput

What the command responds with

Required Methods§

source

fn into_enum(self) -> ModelingCmd

Take this specific enum variant, and create the general enum.

source

fn name() -> &'static str

The command’s name.

Object Safety§

This trait is not object safe.

Implementors§

source§

impl ModelingCmdVariant for CameraDragEnd

source§

impl ModelingCmdVariant for CameraDragMove

source§

impl ModelingCmdVariant for CameraDragStart

§

type Output = ()

source§

impl ModelingCmdVariant for CenterOfMass

source§

impl ModelingCmdVariant for ClosePath

source§

impl ModelingCmdVariant for CurveGetControlPoints

source§

impl ModelingCmdVariant for CurveGetEndPoints

source§

impl ModelingCmdVariant for CurveGetType

source§

impl ModelingCmdVariant for CurveSetConstraint

§

type Output = ()

source§

impl ModelingCmdVariant for DefaultCameraFocusOn

§

type Output = ()

source§

impl ModelingCmdVariant for DefaultCameraGetSettings

source§

impl ModelingCmdVariant for DefaultCameraLookAt

§

type Output = ()

source§

impl ModelingCmdVariant for DefaultCameraPerspectiveSettings

§

type Output = ()

source§

impl ModelingCmdVariant for DefaultCameraSetOrthographic

§

type Output = ()

source§

impl ModelingCmdVariant for DefaultCameraSetPerspective

§

type Output = ()

source§

impl ModelingCmdVariant for DefaultCameraZoom

source§

impl ModelingCmdVariant for Density

source§

impl ModelingCmdVariant for EdgeLinesVisible

§

type Output = ()

source§

impl ModelingCmdVariant for EditModeEnter

§

type Output = ()

source§

impl ModelingCmdVariant for EditModeExit

§

type Output = ()

source§

impl ModelingCmdVariant for EnableSketchMode

§

type Output = ()

source§

impl ModelingCmdVariant for EntityCircularPattern

source§

impl ModelingCmdVariant for EntityFade

§

type Output = ()

source§

impl ModelingCmdVariant for EntityGetAllChildUuids

source§

impl ModelingCmdVariant for EntityGetChildUuid

source§

impl ModelingCmdVariant for EntityGetDistance

source§

impl ModelingCmdVariant for EntityGetNumChildren

source§

impl ModelingCmdVariant for EntityGetParentId

source§

impl ModelingCmdVariant for EntityLinearPattern

source§

impl ModelingCmdVariant for EntityLinearPatternTransform

source§

impl ModelingCmdVariant for EntityMakeHelix

§

type Output = ()

source§

impl ModelingCmdVariant for EntityMirror

§

type Output = ()

source§

impl ModelingCmdVariant for EntitySetOpacity

§

type Output = ()

source§

impl ModelingCmdVariant for Export

source§

impl ModelingCmdVariant for ExtendPath

§

type Output = ()

source§

impl ModelingCmdVariant for Extrude

§

type Output = ()

source§

impl ModelingCmdVariant for FaceGetCenter

source§

impl ModelingCmdVariant for FaceGetGradient

source§

impl ModelingCmdVariant for FaceGetPosition

source§

impl ModelingCmdVariant for FaceIsPlanar

source§

impl ModelingCmdVariant for GetEntityType

source§

impl ModelingCmdVariant for GetNumObjects

source§

impl ModelingCmdVariant for GetSketchModePlane

source§

impl ModelingCmdVariant for HandleMouseDragEnd

§

type Output = ()

source§

impl ModelingCmdVariant for HandleMouseDragMove

§

type Output = ()

source§

impl ModelingCmdVariant for HandleMouseDragStart

§

type Output = ()

source§

impl ModelingCmdVariant for HighlightSetEntities

§

type Output = ()

source§

impl ModelingCmdVariant for HighlightSetEntity

source§

impl ModelingCmdVariant for ImportFiles

source§

impl ModelingCmdVariant for MakeAxesGizmo

§

type Output = ()

source§

impl ModelingCmdVariant for MakePlane

§

type Output = ()

source§

impl ModelingCmdVariant for Mass

§

type Output = Mass

source§

impl ModelingCmdVariant for MouseClick

source§

impl ModelingCmdVariant for MouseMove

§

type Output = ()

source§

impl ModelingCmdVariant for MovePathPen

§

type Output = ()

source§

impl ModelingCmdVariant for NewAnnotation

§

type Output = ()

source§

impl ModelingCmdVariant for ObjectBringToFront

§

type Output = ()

source§

impl ModelingCmdVariant for ObjectSetMaterialParamsPbr

§

type Output = ()

source§

impl ModelingCmdVariant for ObjectVisible

§

type Output = ()

source§

impl ModelingCmdVariant for PathGetCurveUuidsForVertices

source§

impl ModelingCmdVariant for PathGetInfo

source§

impl ModelingCmdVariant for PathGetVertexUuids

source§

impl ModelingCmdVariant for PlaneIntersectAndProject

source§

impl ModelingCmdVariant for PlaneSetColor

§

type Output = ()

source§

impl ModelingCmdVariant for ReconfigureStream

§

type Output = ()

source§

impl ModelingCmdVariant for RemoveSceneObjects

§

type Output = ()

source§

impl ModelingCmdVariant for Revolve

§

type Output = ()

source§

impl ModelingCmdVariant for RevolveAboutEdge

§

type Output = ()

source§

impl ModelingCmdVariant for SceneClearAll

§

type Output = ()

source§

impl ModelingCmdVariant for SelectAdd

§

type Output = ()

source§

impl ModelingCmdVariant for SelectClear

§

type Output = ()

source§

impl ModelingCmdVariant for SelectGet

source§

impl ModelingCmdVariant for SelectRemove

§

type Output = ()

source§

impl ModelingCmdVariant for SelectReplace

§

type Output = ()

source§

impl ModelingCmdVariant for SelectWithPoint

source§

impl ModelingCmdVariant for SendObject

§

type Output = ()

source§

impl ModelingCmdVariant for SetBackgroundColor

§

type Output = ()

source§

impl ModelingCmdVariant for SetCurrentToolProperties

§

type Output = ()

source§

impl ModelingCmdVariant for SetDefaultSystemProperties

§

type Output = ()

source§

impl ModelingCmdVariant for SetSceneUnits

§

type Output = ()

source§

impl ModelingCmdVariant for SetSelectionFilter

§

type Output = ()

source§

impl ModelingCmdVariant for SetSelectionType

§

type Output = ()

source§

impl ModelingCmdVariant for SetTool

§

type Output = ()

source§

impl ModelingCmdVariant for SketchModeDisable

§

type Output = ()

source§

impl ModelingCmdVariant for Solid2dAddHole

§

type Output = ()

source§

impl ModelingCmdVariant for Solid3dFilletEdge

§

type Output = ()

source§

impl ModelingCmdVariant for Solid3dGetAllEdgeFaces

source§

impl ModelingCmdVariant for Solid3dGetAllOppositeEdges

source§

impl ModelingCmdVariant for Solid3dGetExtrusionFaceInfo

source§

impl ModelingCmdVariant for Solid3dGetNextAdjacentEdge

source§

impl ModelingCmdVariant for Solid3dGetOppositeEdge

source§

impl ModelingCmdVariant for Solid3dGetPrevAdjacentEdge

source§

impl ModelingCmdVariant for Solid3dShellFace

§

type Output = ()

source§

impl ModelingCmdVariant for StartPath

§

type Output = ()

source§

impl ModelingCmdVariant for SurfaceArea

source§

impl ModelingCmdVariant for TakeSnapshot

source§

impl ModelingCmdVariant for UpdateAnnotation

§

type Output = ()

source§

impl ModelingCmdVariant for ViewIsometric

source§

impl ModelingCmdVariant for Volume

source§

impl ModelingCmdVariant for ZoomToFit