pub struct PropertyDefinition { /* private fields */ }Expand description
Native implementation of PropertyDefinition
This defines a field in a schema
Implementations
sourceimpl PropertyDefinition
impl PropertyDefinition
pub fn name(&self) -> &str
pub fn data_type(&self) -> &DataType
pub fn required(&self) -> &bool
pub fn description(&self) -> &str
pub fn number_exponent(&self) -> &i32
pub fn enum_options(&self) -> &[String]
pub fn struct_properties(&self) -> &[PropertyDefinition]
Trait Implementations
sourceimpl Clone for PropertyDefinition
impl Clone for PropertyDefinition
sourcefn clone(&self) -> PropertyDefinition
fn clone(&self) -> PropertyDefinition
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read more
sourceimpl Debug for PropertyDefinition
impl Debug for PropertyDefinition
sourceimpl FromBytes<PropertyDefinition> for PropertyDefinition
impl FromBytes<PropertyDefinition> for PropertyDefinition
fn from_bytes(bytes: &[u8]) -> Result<PropertyDefinition, ProtoConversionError>
sourceimpl FromNative<PropertyDefinition> for PropertyDefinition
impl FromNative<PropertyDefinition> for PropertyDefinition
fn from_native(
property_definition: PropertyDefinition
) -> Result<Self, ProtoConversionError>
sourceimpl FromProto<PropertyDefinition> for PropertyDefinition
impl FromProto<PropertyDefinition> for PropertyDefinition
fn from_proto(
property_definition: PropertyDefinition
) -> Result<Self, ProtoConversionError>
sourceimpl IntoBytes for PropertyDefinition
impl IntoBytes for PropertyDefinition
fn into_bytes(self) -> Result<Vec<u8>, ProtoConversionError>
sourceimpl IntoNative<PropertyDefinition> for PropertyDefinition
impl IntoNative<PropertyDefinition> for PropertyDefinition
fn into_native(self) -> Result<T, ProtoConversionError>
sourceimpl IntoProto<PropertyDefinition> for PropertyDefinition
impl IntoProto<PropertyDefinition> for PropertyDefinition
fn into_proto(self) -> Result<T, ProtoConversionError>
sourceimpl PartialEq<PropertyDefinition> for PropertyDefinition
impl PartialEq<PropertyDefinition> for PropertyDefinition
sourcefn eq(&self, other: &PropertyDefinition) -> bool
fn eq(&self, other: &PropertyDefinition) -> bool
This method tests for self and other values to be equal, and is used
by ==. Read more
sourcefn ne(&self, other: &PropertyDefinition) -> bool
fn ne(&self, other: &PropertyDefinition) -> bool
This method tests for !=.
impl StructuralPartialEq for PropertyDefinition
Auto Trait Implementations
impl RefUnwindSafe for PropertyDefinition
impl Send for PropertyDefinition
impl Sync for PropertyDefinition
impl Unpin for PropertyDefinition
impl UnwindSafe for PropertyDefinition
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more