pub struct HoleSpecification {
pub standard: String,
pub designation: Option<String>,
pub class: Option<String>,
pub fit: Option<String>,
pub threaded: bool,
pub modeled: bool,
pub cosmetic: bool,
pub pitch: Option<Length>,
pub major_diameter: Option<Length>,
pub hand: ThreadHand,
pub depth: HoleThreadDepth,
pub clearance: Option<Length>,
}Expand description
Standard sizing and optional physical-thread construction for a hole.
Fields§
§standard: StringNamed thread or fastener standard family.
designation: Option<String>Nominal size designation within the standard.
class: Option<String>Tolerance or thread class.
fit: Option<String>Clearance-hole fit class when the hole is not threaded.
threaded: boolWhether the hole is internally threaded rather than a clearance hole.
modeled: boolWhether exact helical thread geometry is modeled.
cosmetic: boolWhether cosmetic thread presentation is requested.
pitch: Option<Length>Thread pitch in canonical millimeters.
major_diameter: Option<Length>Nominal major thread diameter.
hand: ThreadHandThread handedness.
depth: HoleThreadDepthAxial thread-depth construction.
clearance: Option<Length>Additional radial thread clearance used for modeled geometry.
Trait Implementations§
Source§impl Clone for HoleSpecification
impl Clone for HoleSpecification
Source§fn clone(&self) -> HoleSpecification
fn clone(&self) -> HoleSpecification
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 moreSource§impl Debug for HoleSpecification
impl Debug for HoleSpecification
Source§impl<'de> Deserialize<'de> for HoleSpecification
impl<'de> Deserialize<'de> for HoleSpecification
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 HoleSpecification
impl JsonSchema for HoleSpecification
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 HoleSpecification
impl PartialEq for HoleSpecification
Source§impl Serialize for HoleSpecification
impl Serialize for HoleSpecification
impl StructuralPartialEq for HoleSpecification
Auto Trait Implementations§
impl Freeze for HoleSpecification
impl RefUnwindSafe for HoleSpecification
impl Send for HoleSpecification
impl Sync for HoleSpecification
impl Unpin for HoleSpecification
impl UnsafeUnpin for HoleSpecification
impl UnwindSafe for HoleSpecification
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