pub struct Record { /* private fields */ }Expand description
Native representation of a Record
A record represents the goods being tracked
Implementations
sourceimpl Record
impl Record
pub fn record_id(&self) -> &str
pub fn schema(&self) -> &str
pub fn owners(&self) -> &[AssociatedAgent]
pub fn custodians(&self) -> &[AssociatedAgent]
pub fn field_final(&self) -> &bool
pub fn into_builder(self) -> RecordBuilder
Trait Implementations
sourceimpl FromBytes<Record> for Record
impl FromBytes<Record> for Record
fn from_bytes(bytes: &[u8]) -> Result<Record, ProtoConversionError>
sourceimpl FromNative<Record> for Record
impl FromNative<Record> for Record
fn from_native(native: Record) -> Result<Self, ProtoConversionError>
sourceimpl FromProto<Record> for Record
impl FromProto<Record> for Record
fn from_proto(proto: Record) -> Result<Self, ProtoConversionError>
sourceimpl IntoBytes for Record
impl IntoBytes for Record
fn into_bytes(self) -> Result<Vec<u8>, ProtoConversionError>
sourceimpl IntoNative<Record> for Record
impl IntoNative<Record> for Record
fn into_native(self) -> Result<T, ProtoConversionError>
sourceimpl IntoProto<Record> for Record
impl IntoProto<Record> for Record
fn into_proto(self) -> Result<T, ProtoConversionError>
impl StructuralPartialEq for Record
Auto Trait Implementations
impl RefUnwindSafe for Record
impl Send for Record
impl Sync for Record
impl Unpin for Record
impl UnwindSafe for Record
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