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
sourceimpl 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
sourceimpl FromBytes<Proposal> for Proposal
impl FromBytes<Proposal> for Proposal
fn from_bytes(bytes: &[u8]) -> Result<Proposal, ProtoConversionError>
sourceimpl FromNative<Proposal> for Proposal
impl FromNative<Proposal> for Proposal
fn from_native(native: Proposal) -> Result<Self, ProtoConversionError>
sourceimpl FromProto<Proposal> for Proposal
impl FromProto<Proposal> for Proposal
fn from_proto(proto: Proposal) -> Result<Self, ProtoConversionError>
sourceimpl IntoBytes for Proposal
impl IntoBytes for Proposal
fn into_bytes(self) -> Result<Vec<u8>, ProtoConversionError>
sourceimpl IntoNative<Proposal> for Proposal
impl IntoNative<Proposal> for Proposal
fn into_native(self) -> Result<T, ProtoConversionError>
sourceimpl IntoProto<Proposal> for Proposal
impl IntoProto<Proposal> for Proposal
fn into_proto(self) -> Result<T, ProtoConversionError>
impl StructuralPartialEq for Proposal
Auto Trait Implementations
impl RefUnwindSafe for Proposal
impl Send for Proposal
impl Sync for Proposal
impl Unpin for Proposal
impl UnwindSafe for Proposal
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