pub struct ScaleFactors {
pub uniform: Option<f64>,
pub x: Option<f64>,
pub y: Option<f64>,
pub z: Option<f64>,
}Expand description
Independently decoded factors of a body-scale transform.
Fields§
§uniform: Option<f64>Uniform factor, when resolved.
x: Option<f64>Model-space x factor, when resolved independently.
y: Option<f64>Model-space y factor, when resolved independently.
z: Option<f64>Model-space z factor, when resolved independently.
Implementations§
Trait Implementations§
Source§impl Clone for ScaleFactors
impl Clone for ScaleFactors
Source§fn clone(&self) -> ScaleFactors
fn clone(&self) -> ScaleFactors
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for ScaleFactors
Source§impl Debug for ScaleFactors
impl Debug for ScaleFactors
Source§impl<'de> Deserialize<'de> for ScaleFactors
impl<'de> Deserialize<'de> for ScaleFactors
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 ScaleFactors
impl JsonSchema for ScaleFactors
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(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreSource§impl PartialEq for ScaleFactors
impl PartialEq for ScaleFactors
Source§impl Serialize for ScaleFactors
impl Serialize for ScaleFactors
impl StructuralPartialEq for ScaleFactors
Auto Trait Implementations§
impl Freeze for ScaleFactors
impl RefUnwindSafe for ScaleFactors
impl Send for ScaleFactors
impl Sync for ScaleFactors
impl Unpin for ScaleFactors
impl UnsafeUnpin for ScaleFactors
impl UnwindSafe for ScaleFactors
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