pub enum NameField {
Name(String),
NameIid(u64),
}Expand description
The canonical dimension key, e.g. “rank”. Must be non-empty and must not be one of the reserved names listed above.
Variants§
Name(String)
NameIid(u64)
Interned version of name: corresponds to the track_dimension_strings
field in InternedData, looked up like string_value_iid.
Implementations§
Source§impl NameField
impl NameField
Sourcepub fn merge(
field: &mut Option<NameField>,
tag: u32,
wire_type: WireType,
buf: &mut impl Buf,
ctx: DecodeContext,
) -> Result<(), DecodeError>
pub fn merge( field: &mut Option<NameField>, tag: u32, wire_type: WireType, buf: &mut impl Buf, ctx: DecodeContext, ) -> Result<(), DecodeError>
Decodes an instance of the message from a buffer, and merges it into self.
Sourcepub fn encoded_len(&self) -> usize
pub fn encoded_len(&self) -> usize
Returns the encoded length of the message without a length delimiter.
Trait Implementations§
impl Eq for NameField
impl StructuralPartialEq for NameField
Auto Trait Implementations§
impl Freeze for NameField
impl RefUnwindSafe for NameField
impl Send for NameField
impl Sync for NameField
impl Unpin for NameField
impl UnsafeUnpin for NameField
impl UnwindSafe for NameField
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