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

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl<'de> Deserialize<'de> for OkModelingCmdResponse

source§

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 From<()> for OkModelingCmdResponse

source§

fn from(_: ()) -> Self

Converts to this type from the input type.
source§

impl From<CurveGetEndPoints> for OkModelingCmdResponse

source§

fn from(x: CurveGetEndPoints) -> Self

Converts to this type from the input type.
source§

impl From<ImportFiles> for OkModelingCmdResponse

source§

fn from(x: ImportFiles) -> Self

Converts to this type from the input type.
source§

impl From<PlaneIntersectAndProject> for OkModelingCmdResponse

source§

fn from(x: PlaneIntersectAndProject) -> Self

Converts to this type from the input type.
source§

impl JsonSchema for OkModelingCmdResponse

source§

fn schema_name() -> String

The name of the generated JSON Schema. Read more
source§

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

Generates a JSON Schema for this type. Read more
source§

fn is_referenceable() -> bool

Whether JSON Schemas generated for this type should be re-used where possible using the $ref keyword. Read more
source§

impl Serialize for OkModelingCmdResponse

source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> IntoResult<T> for T

§

type Err = Infallible

source§

fn into_result(self) -> Result<T, <T as IntoResult<T>>::Err>

source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,