pub struct Schema { /* private fields */ }
Expand description
Native representation of a Schema
A schema provides the definition for a property across smart contracts
Implementations§
Source§impl Schema
impl Schema
pub fn name(&self) -> &str
pub fn description(&self) -> &str
pub fn owner(&self) -> &str
pub fn properties(&self) -> &[PropertyDefinition]
Trait Implementations§
Source§impl FromBytes<Schema> for Schema
impl FromBytes<Schema> for Schema
fn from_bytes(bytes: &[u8]) -> Result<Schema, ProtoConversionError>
Source§impl FromNative<Schema> for Schema
impl FromNative<Schema> for Schema
fn from_native(schema: Schema) -> Result<Self, ProtoConversionError>
Source§impl FromProto<Schema> for Schema
impl FromProto<Schema> for Schema
fn from_proto(schema: Schema) -> Result<Self, ProtoConversionError>
Source§impl IntoNative<Schema> for Schema
impl IntoNative<Schema> for Schema
fn into_native(self) -> Result<T, ProtoConversionError>
Source§impl IntoProto<Schema> for Schema
impl IntoProto<Schema> for Schema
fn into_proto(self) -> Result<T, ProtoConversionError>
impl StructuralPartialEq for Schema
Auto Trait Implementations§
impl Freeze for Schema
impl RefUnwindSafe for Schema
impl Send for Schema
impl Sync for Schema
impl Unpin for Schema
impl UnwindSafe for Schema
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