pub struct FieldTypeDescription {
pub type_id: u8,
pub capacity: u64,
pub string_capacity: u64,
pub nested_type_name: String,
}Expand description
Field type description with type ID
Matches type_description_interfaces/msg/FieldType
Fields§
§type_id: u8Type ID (1-166, see TypeId constants)
capacity: u64Array/sequence capacity (0 for single values and unbounded sequences)
string_capacity: u64String capacity for bounded strings (0 otherwise)
nested_type_name: StringNested type name (empty for primitives)
Implementations§
Trait Implementations§
Source§impl Clone for FieldTypeDescription
impl Clone for FieldTypeDescription
Source§fn clone(&self) -> FieldTypeDescription
fn clone(&self) -> FieldTypeDescription
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 FieldTypeDescription
impl Debug for FieldTypeDescription
Source§impl Default for FieldTypeDescription
impl Default for FieldTypeDescription
Source§fn default() -> FieldTypeDescription
fn default() -> FieldTypeDescription
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for FieldTypeDescription
impl<'de> Deserialize<'de> for FieldTypeDescription
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
Auto Trait Implementations§
impl Freeze for FieldTypeDescription
impl RefUnwindSafe for FieldTypeDescription
impl Send for FieldTypeDescription
impl Sync for FieldTypeDescription
impl Unpin for FieldTypeDescription
impl UnsafeUnpin for FieldTypeDescription
impl UnwindSafe for FieldTypeDescription
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