Struct kittycad_modeling_cmds::shared::AnnotationOptions
source · pub struct AnnotationOptions {
pub text: Option<AnnotationTextOptions>,
pub line_ends: Option<AnnotationLineEndOptions>,
pub line_width: Option<f32>,
pub color: Option<Color>,
pub position: Option<Point3d<f32>>,
}
Expand description
Options for annotations
Fields§
§text: Option<AnnotationTextOptions>
Text displayed on the annotation
line_ends: Option<AnnotationLineEndOptions>
How to style the start and end of the line
line_width: Option<f32>
Width of the annotation’s line
color: Option<Color>
Color to render the annotation
position: Option<Point3d<f32>>
Position to put the annotation
Trait Implementations§
source§impl Clone for AnnotationOptions
impl Clone for AnnotationOptions
source§fn clone(&self) -> AnnotationOptions
fn clone(&self) -> AnnotationOptions
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 AnnotationOptions
impl Debug for AnnotationOptions
source§impl<'de> Deserialize<'de> for AnnotationOptions
impl<'de> Deserialize<'de> for AnnotationOptions
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 JsonSchema for AnnotationOptions
impl JsonSchema for AnnotationOptions
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 AnnotationOptions
impl Send for AnnotationOptions
impl Sync for AnnotationOptions
impl Unpin for AnnotationOptions
impl UnwindSafe for AnnotationOptions
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