pub enum MetadataValueKind {
Show 24 variants
ForceAlign(IntegerLiteral),
BitFlags,
CsharpPartial,
Private,
NativeType(StringLiteral),
NativeTypePackName(StringLiteral),
OriginalOrder,
Required,
Deprecated,
Key,
Shared,
NestedFlatbuffer(StringLiteral),
Id(IntegerLiteral),
Hash(StringLiteral),
CppType(StringLiteral),
CppPtrType(StringLiteral),
CppPtrTypeGet(StringLiteral),
CppStrType(StringLiteral),
CppStrFlexCtor,
NativeInline,
NativeDefault(StringLiteral),
Flexbuffer,
Streaming(StringLiteral),
Idempotent,
}Variants§
ForceAlign(IntegerLiteral)
BitFlags
CsharpPartial
Private
NativeType(StringLiteral)
NativeTypePackName(StringLiteral)
OriginalOrder
Required
Deprecated
Key
NestedFlatbuffer(StringLiteral)
Id(IntegerLiteral)
Hash(StringLiteral)
CppType(StringLiteral)
CppPtrType(StringLiteral)
CppPtrTypeGet(StringLiteral)
CppStrType(StringLiteral)
CppStrFlexCtor
NativeInline
NativeDefault(StringLiteral)
Flexbuffer
Streaming(StringLiteral)
Idempotent
Implementations§
Source§impl MetadataValueKind
impl MetadataValueKind
pub fn is_supported(&self) -> bool
pub fn accepted_on_enums(&self) -> bool
pub fn accepted_on_structs(&self) -> bool
pub fn accepted_on_tables(&self) -> bool
pub fn accepted_on_unions(&self) -> bool
pub fn accepted_on_rpc_services(&self) -> bool
pub fn accepted_on_struct_fields(&self) -> bool
pub fn accepted_on_table_fields(&self) -> bool
pub fn accepted_on_rpc_methods(&self) -> bool
Trait Implementations§
Source§impl Clone for MetadataValueKind
impl Clone for MetadataValueKind
Source§fn clone(&self) -> MetadataValueKind
fn clone(&self) -> MetadataValueKind
Returns a copy 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 moreAuto Trait Implementations§
impl Freeze for MetadataValueKind
impl RefUnwindSafe for MetadataValueKind
impl Send for MetadataValueKind
impl Sync for MetadataValueKind
impl Unpin for MetadataValueKind
impl UnwindSafe for MetadataValueKind
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