pub struct AnnotationFeatureTag {
pub entity_id: Option<Uuid>,
pub edge_reference: Option<EdgeSpecifier>,
pub entity_pos: Point2d<f64>,
pub leader_type: AnnotationLineEnd,
pub key: String,
pub value: String,
pub show_key: bool,
pub plane_id: Uuid,
pub offset: Point2d<f64>,
pub font_scale: f32,
pub font_point_size: u32,
pub leader_scale: f32,
}Expand description
Parameters for defining an MBD Feature Tag Annotation state
Fields§
§entity_id: Option<Uuid>Entity to place the annotation leader from
edge_reference: Option<EdgeSpecifier>Edge reference to use to place the annotation leader from
If both entity_id and edge_reference are provided, edge_reference takes precedence.
entity_pos: Point2d<f64>Normalized position within the entity to position the annotation leader from
leader_type: AnnotationLineEndType of leader to use
key: StringTag key
value: StringTag value
show_key: boolWhether or not to display the key on the annotation label
plane_id: UuidOrientation plane. The annotation will lie in this plane which is positioned about the leader position as its origin.
offset: Point2d<f64>2D Position offset of the annotation within the plane.
font_scale: f32The scale of the font label in 3D space
font_point_size: u32The point size of the fonts used to generate the annotation label. Very large values can negatively affect performance.
leader_scale: f32The scale of the leader (dot or arrow). Defaults to 1.
Implementations§
Source§impl AnnotationFeatureTag
impl AnnotationFeatureTag
Sourcepub fn builder() -> AnnotationFeatureTagBuilder
pub fn builder() -> AnnotationFeatureTagBuilder
Create an instance of AnnotationFeatureTag using the builder syntax
Trait Implementations§
Source§impl<'arbitrary> Arbitrary<'arbitrary> for AnnotationFeatureTag
impl<'arbitrary> Arbitrary<'arbitrary> for AnnotationFeatureTag
Source§fn arbitrary(u: &mut Unstructured<'arbitrary>) -> Result<Self>
fn arbitrary(u: &mut Unstructured<'arbitrary>) -> Result<Self>
Self from the given unstructured data. Read moreSource§fn arbitrary_take_rest(u: Unstructured<'arbitrary>) -> Result<Self>
fn arbitrary_take_rest(u: Unstructured<'arbitrary>) -> Result<Self>
Self from the entirety of the given
unstructured data. Read moreSource§fn size_hint(depth: usize) -> (usize, Option<usize>)
fn size_hint(depth: usize) -> (usize, Option<usize>)
Unstructured this type
needs to construct itself. Read moreSource§fn try_size_hint(
depth: usize,
) -> Result<(usize, Option<usize>), MaxRecursionReached>
fn try_size_hint( depth: usize, ) -> Result<(usize, Option<usize>), MaxRecursionReached>
Unstructured this type
needs to construct itself. Read moreSource§impl Clone for AnnotationFeatureTag
impl Clone for AnnotationFeatureTag
Source§fn clone(&self) -> AnnotationFeatureTag
fn clone(&self) -> AnnotationFeatureTag
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for AnnotationFeatureTag
impl Debug for AnnotationFeatureTag
Source§impl<'de> Deserialize<'de> for AnnotationFeatureTag
impl<'de> Deserialize<'de> for AnnotationFeatureTag
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 JsonSchema for AnnotationFeatureTag
impl JsonSchema for AnnotationFeatureTag
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(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Source§fn is_referenceable() -> bool
fn is_referenceable() -> bool
$ref keyword. Read moreSource§impl PartialEq for AnnotationFeatureTag
impl PartialEq for AnnotationFeatureTag
Source§fn eq(&self, other: &AnnotationFeatureTag) -> bool
fn eq(&self, other: &AnnotationFeatureTag) -> bool
self and other values to be equal, and is used by ==.Source§impl Serialize for AnnotationFeatureTag
impl Serialize for AnnotationFeatureTag
impl StructuralPartialEq for AnnotationFeatureTag
Source§impl TS for AnnotationFeatureTag
impl TS for AnnotationFeatureTag
Source§type WithoutGenerics = AnnotationFeatureTag
type WithoutGenerics = AnnotationFeatureTag
WithoutGenerics should just be Self.
If the type does have generic parameters, then all generic parameters must be replaced with
a dummy type, e.g ts_rs::Dummy or (). The only requirement for these dummy types is that
EXPORT_TO must be None. Read moreSource§type OptionInnerType = AnnotationFeatureTag
type OptionInnerType = AnnotationFeatureTag
std::option::Option<T>, then this associated type is set to T.
All other implementations of TS should set this type to Self instead.Source§fn docs() -> Option<String>
fn docs() -> Option<String>
TS is derived, docs are
automatically read from your doc comments or #[doc = ".."] attributesSource§fn decl_concrete(cfg: &Config) -> String
fn decl_concrete(cfg: &Config) -> String
TS::decl().
If this type is not generic, then this function is equivalent to TS::decl().Source§fn decl(cfg: &Config) -> String
fn decl(cfg: &Config) -> String
type User = { user_id: number, ... }.
This function will panic if the type has no declaration. Read moreSource§fn inline(cfg: &Config) -> String
fn inline(cfg: &Config) -> String
{ user_id: number }.
This function will panic if the type cannot be inlined.Source§fn inline_flattened(cfg: &Config) -> String
fn inline_flattened(cfg: &Config) -> String
Source§fn visit_generics(v: &mut impl TypeVisitor)where
Self: 'static,
fn visit_generics(v: &mut impl TypeVisitor)where
Self: 'static,
Source§fn output_path() -> Option<PathBuf>
fn output_path() -> Option<PathBuf>
T should be exported, relative to the output directory.
The returned path does not include any base directory. Read moreSource§fn visit_dependencies(v: &mut impl TypeVisitor)where
Self: 'static,
fn visit_dependencies(v: &mut impl TypeVisitor)where
Self: 'static,
Source§fn dependencies(cfg: &Config) -> Vec<Dependency>where
Self: 'static,
fn dependencies(cfg: &Config) -> Vec<Dependency>where
Self: 'static,
Source§fn export(cfg: &Config) -> Result<(), ExportError>where
Self: 'static,
fn export(cfg: &Config) -> Result<(), ExportError>where
Self: 'static,
TS::export_all. Read moreSource§fn export_all(cfg: &Config) -> Result<(), ExportError>where
Self: 'static,
fn export_all(cfg: &Config) -> Result<(), ExportError>where
Self: 'static,
TS::export. Read moreSource§fn export_to_string(cfg: &Config) -> Result<String, ExportError>where
Self: 'static,
fn export_to_string(cfg: &Config) -> Result<String, ExportError>where
Self: 'static,
Auto Trait Implementations§
impl Freeze for AnnotationFeatureTag
impl RefUnwindSafe for AnnotationFeatureTag
impl Send for AnnotationFeatureTag
impl Sync for AnnotationFeatureTag
impl Unpin for AnnotationFeatureTag
impl UnsafeUnpin for AnnotationFeatureTag
impl UnwindSafe for AnnotationFeatureTag
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more