pub struct Record { /* private fields */ }Expand description
Native representation of a Record
A record represents the goods being tracked
Implementations§
Source§impl 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§
Source§impl FromBytes<Record> for Record
impl FromBytes<Record> for Record
fn from_bytes(bytes: &[u8]) -> Result<Record, ProtoConversionError>
Source§impl FromNative<Record> for Record
impl FromNative<Record> for Record
fn from_native(native: Record) -> Result<Self, ProtoConversionError>
Source§impl FromProto<Record> for Record
impl FromProto<Record> for Record
fn from_proto(proto: Record) -> Result<Self, ProtoConversionError>
Source§impl IntoNative<Record> for Record
impl IntoNative<Record> for Record
fn into_native(self) -> Result<T, ProtoConversionError>
Source§impl IntoProto<Record> for Record
impl IntoProto<Record> for Record
fn into_proto(self) -> Result<T, ProtoConversionError>
impl StructuralPartialEq for Record
Auto Trait Implementations§
impl Freeze for Record
impl RefUnwindSafe for Record
impl Send for Record
impl Sync for Record
impl Unpin for Record
impl UnsafeUnpin for Record
impl UnwindSafe for Record
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