Skip to main content

BodyMeasurements

Struct BodyMeasurements 

Source
pub struct BodyMeasurements {
Show 67 fields pub stature_mm: Option<u16>, pub weight_g: Option<u32>, pub sitting_height_mm: Option<u16>, pub cervical_height_mm: Option<u16>, pub crotch_height_mm: Option<u16>, pub knee_height_mm: Option<u16>, pub ankle_height_mm: Option<u16>, pub waist_height_mm: Option<u16>, pub arm_span_mm: Option<u16>, pub neck_mm: Option<u16>, pub neck_base_mm: Option<u16>, pub shoulder_width_mm: Option<u16>, pub across_back_mm: Option<u16>, pub across_chest_mm: Option<u16>, pub chest_mm: Option<u16>, pub underbust_mm: Option<u16>, pub waist_mm: Option<u16>, pub abdomen_mm: Option<u16>, pub hip_mm: Option<u16>, pub nape_to_waist_mm: Option<u16>, pub front_waist_length_mm: Option<u16>, pub rise_mm: Option<u16>, pub outseam_mm: Option<u16>, pub shoulder_girth_mm: Option<u16>, pub sleeve_mm: Option<u16>, pub upper_arm_length_mm: Option<u16>, pub underarm_length_mm: Option<u16>, pub elbow_to_wrist_mm: Option<u16>, pub biceps_mm: Option<u16>, pub elbow_girth_mm: Option<u16>, pub forearm_mm: Option<u16>, pub wrist_mm: Option<u16>, pub inseam_mm: Option<u16>, pub thigh_mm: Option<u16>, pub mid_thigh_mm: Option<u16>, pub knee_girth_mm: Option<u16>, pub calf_mm: Option<u16>, pub ankle_mm: Option<u16>, pub head_mm: Option<u16>, pub head_length_mm: Option<u16>, pub head_breadth_mm: Option<u16>, pub head_height_mm: Option<u16>, pub face_length_mm: Option<u16>, pub bizygomatic_mm: Option<u16>, pub sagittal_arc_mm: Option<u16>, pub bitragion_arc_mm: Option<u16>, pub interpupillary_mm: Option<u16>, pub hand_length_mm: Option<u16>, pub palm_length_mm: Option<u16>, pub hand_breadth_mm: Option<u16>, pub hand_circ_mm: Option<u16>, pub middle_finger_mm: Option<u16>, pub thumb_circ_mm: Option<u16>, pub ring_finger_circ_mm: Option<u16>, pub ring_finger_left_circ_mm: Option<u16>, pub ring_finger_right_circ_mm: Option<u16>, pub foot_mm: Option<u16>, pub foot_left_mm: Option<u16>, pub foot_right_mm: Option<u16>, pub foot_width_mm: Option<u16>, pub foot_width_left_mm: Option<u16>, pub foot_width_right_mm: Option<u16>, pub heel_width_mm: Option<u16>, pub ball_girth_mm: Option<u16>, pub instep_girth_mm: Option<u16>, pub arch_length_mm: Option<u16>, pub toe_height_mm: Option<u16>,
}
Expand description

Lengths and girths the person may declare. Units are millimetres / grams so the stored numbers are integers (no float health arithmetic in the record).

Fields§

§stature_mm: Option<u16>§weight_g: Option<u32>§sitting_height_mm: Option<u16>§cervical_height_mm: Option<u16>§crotch_height_mm: Option<u16>§knee_height_mm: Option<u16>§ankle_height_mm: Option<u16>§waist_height_mm: Option<u16>§arm_span_mm: Option<u16>§neck_mm: Option<u16>§neck_base_mm: Option<u16>§shoulder_width_mm: Option<u16>§across_back_mm: Option<u16>§across_chest_mm: Option<u16>§chest_mm: Option<u16>§underbust_mm: Option<u16>§waist_mm: Option<u16>§abdomen_mm: Option<u16>§hip_mm: Option<u16>§nape_to_waist_mm: Option<u16>§front_waist_length_mm: Option<u16>§rise_mm: Option<u16>§outseam_mm: Option<u16>§shoulder_girth_mm: Option<u16>§sleeve_mm: Option<u16>§upper_arm_length_mm: Option<u16>§underarm_length_mm: Option<u16>§elbow_to_wrist_mm: Option<u16>§biceps_mm: Option<u16>§elbow_girth_mm: Option<u16>§forearm_mm: Option<u16>§wrist_mm: Option<u16>§inseam_mm: Option<u16>§thigh_mm: Option<u16>§mid_thigh_mm: Option<u16>§knee_girth_mm: Option<u16>§calf_mm: Option<u16>§ankle_mm: Option<u16>§head_mm: Option<u16>§head_length_mm: Option<u16>§head_breadth_mm: Option<u16>§head_height_mm: Option<u16>§face_length_mm: Option<u16>§bizygomatic_mm: Option<u16>§sagittal_arc_mm: Option<u16>§bitragion_arc_mm: Option<u16>§interpupillary_mm: Option<u16>§hand_length_mm: Option<u16>§palm_length_mm: Option<u16>§hand_breadth_mm: Option<u16>§hand_circ_mm: Option<u16>§middle_finger_mm: Option<u16>§thumb_circ_mm: Option<u16>§ring_finger_circ_mm: Option<u16>§ring_finger_left_circ_mm: Option<u16>§ring_finger_right_circ_mm: Option<u16>§foot_mm: Option<u16>§foot_left_mm: Option<u16>§foot_right_mm: Option<u16>§foot_width_mm: Option<u16>§foot_width_left_mm: Option<u16>§foot_width_right_mm: Option<u16>§heel_width_mm: Option<u16>§ball_girth_mm: Option<u16>§instep_girth_mm: Option<u16>§arch_length_mm: Option<u16>§toe_height_mm: Option<u16>

Implementations§

Source§

impl BodyMeasurements

Source

pub fn is_empty(&self) -> bool

when empty.

Source

pub fn get(&self, id: &str) -> Option<u32>

Gets.

Source

pub fn declared(&self) -> Vec<(&'static MeasurementSpec, u32)>

Declared entries.

Source

pub fn values_for( &self, use_: MeasurementUse, ) -> Vec<(&'static MeasurementSpec, u32)>

Values for a measurement.

Source

pub fn has_beyond_anatomy_fit(&self) -> bool

when it has beyond-anatomy-fit.

Source

pub fn foot_length_mm(&self) -> Option<u16>

Single foot length for a consumer that does not handle laterality.

Source

pub fn foot_width_for_last(&self) -> Option<u16>

Foot width for a last size.

Source

pub fn validate(&self) -> Result<(), String>

Validates.

Trait Implementations§

Source§

impl Clone for BodyMeasurements

Source§

fn clone(&self) -> Self

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for BodyMeasurements

Source§

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

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

impl Default for BodyMeasurements

Source§

fn default() -> Self

Returns the “default value” for a type. Read more
Source§

impl<'de> Deserialize<'de> for BodyMeasurements

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 Eq for BodyMeasurements

Source§

impl PartialEq for BodyMeasurements

Source§

fn eq(&self, other: &Self) -> bool

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Inequality operator !=. Read more
Source§

impl Serialize for BodyMeasurements

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
Source§

impl StructuralPartialEq for BodyMeasurements

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
§

impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
where ST: ?Sized, DT: ?Sized,

§

impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
where ST: ?Sized, DT: ?Sized,

Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

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

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.

§

impl<T> Read<Exclusive, BecauseExclusive> for T
where T: ?Sized,

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

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

Source§

type Error = !

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

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

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

Source§

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.