pub struct NestedType {
pub type_name: &'static str,
pub fields: &'static [Field],
}Expand description
Metadata for a nested struct field.
Carried by FieldType::Nested so the runtime descriptor builder can
recurse into the child with the correct ROS type name (Cyclone DDS uses
it to dedupe identical nested types in the registry).
Fields§
§type_name: &'static strFull ROS type name of the nested struct, e.g. "builtin_interfaces/msg/Time".
fields: &'static [Field]Schema of the nested struct’s fields.
Trait Implementations§
Source§impl Clone for NestedType
impl Clone for NestedType
Source§fn clone(&self) -> NestedType
fn clone(&self) -> NestedType
Returns a duplicate of the value. Read more
1.0.0 · 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 NestedType
impl Debug for NestedType
Source§impl PartialEq for NestedType
impl PartialEq for NestedType
impl Copy for NestedType
impl Eq for NestedType
impl StructuralPartialEq for NestedType
Auto Trait Implementations§
impl Freeze for NestedType
impl RefUnwindSafe for NestedType
impl Send for NestedType
impl Sync for NestedType
impl Unpin for NestedType
impl UnsafeUnpin for NestedType
impl UnwindSafe for NestedType
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