pub struct PlayerComponent {Show 14 fields
pub path: String,
pub parent: Option<String>,
pub depth: usize,
pub name: String,
pub part: String,
pub part_id: Option<String>,
pub find_number: String,
pub subassembly: bool,
pub fastener: bool,
pub serial_tracked: bool,
pub grounded: bool,
pub torque: Option<String>,
pub attributes: Vec<(String, String)>,
pub thumbnail: Option<String>,
}Expand description
One placed component of the assembly: a row of the Model tab’s tree and, with the other rows of its part, a card of the Parts tab.
Fields§
§path: StringThe occurrence path (ACOMP1:ACOMP3): a node belongs to the deepest
component whose path its occurrence starts with (then :).
parent: Option<String>The parent component’s path; none at the top of the assembly.
depth: usize0 at the top of the assembly.
name: StringThe part’s name.
part: StringWhat a step’s add names the part by: its PLM id, or its name.
part_id: Option<String>The PLM part id when the part was placed from a PLM revision.
find_number: String§subassembly: bool§fastener: bool§serial_tracked: bool§grounded: bool§torque: Option<String>§attributes: Vec<(String, String)>The part’s attributes as [name, value] text pairs.
thumbnail: Option<String>The part’s thumbnail (PNG data URL); every row of one part carries the same.
Implementations§
Source§impl PlayerComponent
impl PlayerComponent
Sourcepub fn rows(root: &Level) -> Vec<Self>
pub fn rows(root: &Level) -> Vec<Self>
One row per component of root and its sub-assemblies, depth first.
Thumbnails are filled by PlayerData::build from the scene’s.
Trait Implementations§
Source§impl Clone for PlayerComponent
impl Clone for PlayerComponent
Source§impl Debug for PlayerComponent
impl Debug for PlayerComponent
Source§impl<'de> Deserialize<'de> for PlayerComponent
impl<'de> Deserialize<'de> for PlayerComponent
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 PartialEq for PlayerComponent
impl PartialEq for PlayerComponent
Source§impl Serialize for PlayerComponent
impl Serialize for PlayerComponent
impl StructuralPartialEq for PlayerComponent
Auto Trait Implementations§
impl Forget for PlayerComponent
impl Freeze for PlayerComponent
impl Move for PlayerComponent
impl RefUnwindSafe for PlayerComponent
impl Send for PlayerComponent
impl Sync for PlayerComponent
impl Unpin for PlayerComponent
impl UnsafeUnpin for PlayerComponent
impl UnwindSafe for PlayerComponent
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