#[repr(u8)]pub enum DcpFieldType {
Null = 0,
Bool = 1,
I32 = 2,
I64 = 3,
F64 = 4,
String = 5,
Bytes = 6,
Array = 7,
Object = 8,
}Expand description
DCP field types
Variants§
Implementations§
Source§impl DcpFieldType
impl DcpFieldType
Sourcepub fn default_size(&self) -> u16
pub fn default_size(&self) -> u16
Get the default size for this type
Sourcepub fn from_mcp_type(mcp_type: &str) -> Self
pub fn from_mcp_type(mcp_type: &str) -> Self
Convert from MCP type string
Trait Implementations§
Source§impl Clone for DcpFieldType
impl Clone for DcpFieldType
Source§fn clone(&self) -> DcpFieldType
fn clone(&self) -> DcpFieldType
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 moreimpl Copy for DcpFieldType
Source§impl Debug for DcpFieldType
impl Debug for DcpFieldType
impl Eq for DcpFieldType
Source§impl PartialEq for DcpFieldType
impl PartialEq for DcpFieldType
Source§fn eq(&self, other: &DcpFieldType) -> bool
fn eq(&self, other: &DcpFieldType) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for DcpFieldType
Auto Trait Implementations§
impl Freeze for DcpFieldType
impl RefUnwindSafe for DcpFieldType
impl Send for DcpFieldType
impl Sync for DcpFieldType
impl Unpin for DcpFieldType
impl UnsafeUnpin for DcpFieldType
impl UnwindSafe for DcpFieldType
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