pub enum OkModelingCmdResponse {
Show 32 variants
Empty,
Export(Export),
SelectWithPoint(SelectWithPoint),
HighlightSetEntity(HighlightSetEntity),
EntityGetChildUuid(EntityGetChildUuid),
EntityGetNumChildren(EntityGetNumChildren),
EntityGetParentId(EntityGetParentId),
EntityGetAllChildUuids(EntityGetAllChildUuids),
SelectGet(SelectGet),
GetEntityType(GetEntityType),
EntityGetDistance(EntityGetDistance),
Solid3dGetAllEdgeFaces(Solid3dGetAllEdgeFaces),
Solid3dGetAllOppositeEdges(Solid3dGetAllOppositeEdges),
Solid3dGetOppositeEdge(Solid3dGetOppositeEdge),
Solid3dGetPrevAdjacentEdge(Solid3dGetPrevAdjacentEdge),
Solid3dGetNextAdjacentEdge(Solid3dGetNextAdjacentEdge),
MouseClick(MouseClick),
CurveGetType(CurveGetType),
CurveGetControlPoints(CurveGetControlPoints),
TakeSnapshot(TakeSnapshot),
PathGetInfo(PathGetInfo),
PathGetCurveUuidsForVertices(PathGetCurveUuidsForVertices),
PathGetVertexUuids(PathGetVertexUuids),
PlaneIntersectAndProject(PlaneIntersectAndProject),
CurveGetEndPoints(CurveGetEndPoints),
ImportFiles(ImportFiles),
Mass(Mass),
Volume(Volume),
Density(Density),
SurfaceArea(SurfaceArea),
CenterOfMass(CenterOfMass),
GetSketchModePlane(GetSketchModePlane),
}Expand description
A successful response from a modeling command. This can be one of several types of responses, depending on the command.
Variants§
Empty
An empty response, used for any command that does not explicitly have a response defined here.
Export(Export)
The response from the Export command.
When this is being performed over a websocket, this is sent as binary not JSON.
The binary data can be deserialized as bincode into a Vec<ExportFile>.
SelectWithPoint(SelectWithPoint)
The response from the SelectWithPoint command.
HighlightSetEntity(HighlightSetEntity)
The response from the HighlightSetEntity command.
EntityGetChildUuid(EntityGetChildUuid)
The response from the EntityGetChildUuid command.
EntityGetNumChildren(EntityGetNumChildren)
The response from the EntityGetNumChildren command.
EntityGetParentId(EntityGetParentId)
The response from the EntityGetParentId command.
EntityGetAllChildUuids(EntityGetAllChildUuids)
The response from the EntityGetAllChildUuids command.
SelectGet(SelectGet)
The response from the SelectGet command.
GetEntityType(GetEntityType)
The response from the GetEntityType command.
EntityGetDistance(EntityGetDistance)
The response from the EntityGetDistance command.
Solid3dGetAllEdgeFaces(Solid3dGetAllEdgeFaces)
The response from the Solid3dGetAllEdgeFaces command.
Solid3dGetAllOppositeEdges(Solid3dGetAllOppositeEdges)
The response from the Solid3dGetAllOppositeEdges command.
Solid3dGetOppositeEdge(Solid3dGetOppositeEdge)
The response from the Solid3dGetOppositeEdge command.
Solid3dGetPrevAdjacentEdge(Solid3dGetPrevAdjacentEdge)
The response from the Solid3dGetPrevAdjacentEdge command.
Solid3dGetNextAdjacentEdge(Solid3dGetNextAdjacentEdge)
The response from the Solid3dGetNextAdjacentEdge command.
MouseClick(MouseClick)
The response from the MouseClick command.
CurveGetType(CurveGetType)
The response from the CurveGetType command.
CurveGetControlPoints(CurveGetControlPoints)
The response from the CurveGetControlPoints command.
TakeSnapshot(TakeSnapshot)
The response from the Take Snapshot command.
PathGetInfo(PathGetInfo)
The response from the Path Get Info command.
PathGetCurveUuidsForVertices(PathGetCurveUuidsForVertices)
The response from the Path Get Curve UUIDs for Vertices command.
PathGetVertexUuids(PathGetVertexUuids)
The response from the Path Get Vertex UUIDs command.
PlaneIntersectAndProject(PlaneIntersectAndProject)
The response from the PlaneIntersectAndProject command.
CurveGetEndPoints(CurveGetEndPoints)
The response from the CurveGetEndPoints command.
ImportFiles(ImportFiles)
The response from the ImportFiles command.
Mass(Mass)
The response from the Mass command.
Volume(Volume)
The response from the Volume command.
Density(Density)
The response from the Density command.
SurfaceArea(SurfaceArea)
The response from the SurfaceArea command.
CenterOfMass(CenterOfMass)
The response from the CenterOfMass command.
GetSketchModePlane(GetSketchModePlane)
The response from the GetSketchModePlane command.
Trait Implementations§
source§impl Debug for OkModelingCmdResponse
impl Debug for OkModelingCmdResponse
source§impl<'de> Deserialize<'de> for OkModelingCmdResponse
impl<'de> Deserialize<'de> for OkModelingCmdResponse
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>,
source§impl From<()> for OkModelingCmdResponse
impl From<()> for OkModelingCmdResponse
source§impl From<CurveGetEndPoints> for OkModelingCmdResponse
impl From<CurveGetEndPoints> for OkModelingCmdResponse
source§fn from(x: CurveGetEndPoints) -> Self
fn from(x: CurveGetEndPoints) -> Self
source§impl From<ImportFiles> for OkModelingCmdResponse
impl From<ImportFiles> for OkModelingCmdResponse
source§fn from(x: ImportFiles) -> Self
fn from(x: ImportFiles) -> Self
source§impl From<PlaneIntersectAndProject> for OkModelingCmdResponse
impl From<PlaneIntersectAndProject> for OkModelingCmdResponse
source§fn from(x: PlaneIntersectAndProject) -> Self
fn from(x: PlaneIntersectAndProject) -> Self
source§impl JsonSchema for OkModelingCmdResponse
impl JsonSchema for OkModelingCmdResponse
source§fn schema_name() -> String
fn schema_name() -> String
source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
source§fn json_schema(gen: &mut SchemaGenerator) -> Schema
fn json_schema(gen: &mut SchemaGenerator) -> Schema
source§fn is_referenceable() -> bool
fn is_referenceable() -> bool
$ref keyword. Read more