pub struct Proposal { /* private fields */ }Expand description
Native representation of a Proposal
A Proposal contains an offer from the owner or custodian of a Record to authorize another
agent a role, either owner, custodian, or reporter for the associated Record.
Implementations§
Source§impl Proposal
impl Proposal
pub fn record_id(&self) -> &str
pub fn timestamp(&self) -> &u64
pub fn issuing_agent(&self) -> &str
pub fn receiving_agent(&self) -> &str
pub fn role(&self) -> &Role
pub fn properties(&self) -> &[String]
pub fn status(&self) -> &Status
pub fn terms(&self) -> &str
pub fn into_builder(self) -> ProposalBuilder
Trait Implementations§
Source§impl FromBytes<Proposal> for Proposal
impl FromBytes<Proposal> for Proposal
fn from_bytes(bytes: &[u8]) -> Result<Proposal, ProtoConversionError>
Source§impl FromNative<Proposal> for Proposal
impl FromNative<Proposal> for Proposal
fn from_native(native: Proposal) -> Result<Self, ProtoConversionError>
Source§impl FromProto<Proposal> for Proposal
impl FromProto<Proposal> for Proposal
fn from_proto(proto: Proposal) -> Result<Self, ProtoConversionError>
Source§impl IntoBytes for Proposal
impl IntoBytes for Proposal
fn into_bytes(self) -> Result<Vec<u8>, ProtoConversionError>
Source§impl IntoNative<Proposal> for Proposal
impl IntoNative<Proposal> for Proposal
fn into_native(self) -> Result<T, ProtoConversionError>
Source§impl IntoProto<Proposal> for Proposal
impl IntoProto<Proposal> for Proposal
fn into_proto(self) -> Result<T, ProtoConversionError>
impl StructuralPartialEq for Proposal
Auto Trait Implementations§
impl Freeze for Proposal
impl RefUnwindSafe for Proposal
impl Send for Proposal
impl Sync for Proposal
impl Unpin for Proposal
impl UnsafeUnpin for Proposal
impl UnwindSafe for Proposal
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