Struct aws_sdk_managedblockchain::model::ProposalSummary
source · [−]#[non_exhaustive]pub struct ProposalSummary {
pub proposal_id: Option<String>,
pub description: Option<String>,
pub proposed_by_member_id: Option<String>,
pub proposed_by_member_name: Option<String>,
pub status: Option<ProposalStatus>,
pub creation_date: Option<DateTime>,
pub expiration_date: Option<DateTime>,
pub arn: Option<String>,
}Expand description
Properties of a proposal.
Applies only to Hyperledger Fabric.
Fields (Non-exhaustive)
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.proposal_id: Option<String>The unique identifier of the proposal.
description: Option<String>The description of the proposal.
proposed_by_member_id: Option<String>The unique identifier of the member that created the proposal.
proposed_by_member_name: Option<String>The name of the member that created the proposal.
status: Option<ProposalStatus>The status of the proposal. Values are as follows:
-
IN_PROGRESS- The proposal is active and open for member voting. -
APPROVED- The proposal was approved with sufficientYESvotes among members according to theVotingPolicyspecified for theNetwork. The specified proposal actions are carried out. -
REJECTED- The proposal was rejected with insufficientYESvotes among members according to theVotingPolicyspecified for theNetwork. The specifiedProposalActionsare not carried out. -
EXPIRED- Members did not cast the number of votes required to determine the proposal outcome before the proposal expired. The specifiedProposalActionsare not carried out. -
ACTION_FAILED- One or more of the specifiedProposalActionsin a proposal that was approved could not be completed because of an error.
creation_date: Option<DateTime>The date and time that the proposal was created.
expiration_date: Option<DateTime> The date and time that the proposal expires. This is the CreationDate plus the ProposalDurationInHours that is specified in the ProposalThresholdPolicy. After this date and time, if members have not cast enough votes to determine the outcome according to the voting policy, the proposal is EXPIRED and Actions are not carried out.
arn: Option<String>The Amazon Resource Name (ARN) of the proposal. For more information about ARNs and their format, see Amazon Resource Names (ARNs) in the AWS General Reference.
Implementations
sourceimpl ProposalSummary
impl ProposalSummary
sourcepub fn proposal_id(&self) -> Option<&str>
pub fn proposal_id(&self) -> Option<&str>
The unique identifier of the proposal.
sourcepub fn description(&self) -> Option<&str>
pub fn description(&self) -> Option<&str>
The description of the proposal.
sourcepub fn proposed_by_member_id(&self) -> Option<&str>
pub fn proposed_by_member_id(&self) -> Option<&str>
The unique identifier of the member that created the proposal.
sourcepub fn proposed_by_member_name(&self) -> Option<&str>
pub fn proposed_by_member_name(&self) -> Option<&str>
The name of the member that created the proposal.
sourcepub fn status(&self) -> Option<&ProposalStatus>
pub fn status(&self) -> Option<&ProposalStatus>
The status of the proposal. Values are as follows:
-
IN_PROGRESS- The proposal is active and open for member voting. -
APPROVED- The proposal was approved with sufficientYESvotes among members according to theVotingPolicyspecified for theNetwork. The specified proposal actions are carried out. -
REJECTED- The proposal was rejected with insufficientYESvotes among members according to theVotingPolicyspecified for theNetwork. The specifiedProposalActionsare not carried out. -
EXPIRED- Members did not cast the number of votes required to determine the proposal outcome before the proposal expired. The specifiedProposalActionsare not carried out. -
ACTION_FAILED- One or more of the specifiedProposalActionsin a proposal that was approved could not be completed because of an error.
sourcepub fn creation_date(&self) -> Option<&DateTime>
pub fn creation_date(&self) -> Option<&DateTime>
The date and time that the proposal was created.
sourcepub fn expiration_date(&self) -> Option<&DateTime>
pub fn expiration_date(&self) -> Option<&DateTime>
The date and time that the proposal expires. This is the CreationDate plus the ProposalDurationInHours that is specified in the ProposalThresholdPolicy. After this date and time, if members have not cast enough votes to determine the outcome according to the voting policy, the proposal is EXPIRED and Actions are not carried out.
sourcepub fn arn(&self) -> Option<&str>
pub fn arn(&self) -> Option<&str>
The Amazon Resource Name (ARN) of the proposal. For more information about ARNs and their format, see Amazon Resource Names (ARNs) in the AWS General Reference.
sourceimpl ProposalSummary
impl ProposalSummary
sourcepub fn builder() -> Builder
pub fn builder() -> Builder
Creates a new builder-style object to manufacture ProposalSummary.
Trait Implementations
sourceimpl Clone for ProposalSummary
impl Clone for ProposalSummary
sourcefn clone(&self) -> ProposalSummary
fn clone(&self) -> ProposalSummary
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read more
sourceimpl Debug for ProposalSummary
impl Debug for ProposalSummary
sourceimpl PartialEq<ProposalSummary> for ProposalSummary
impl PartialEq<ProposalSummary> for ProposalSummary
sourcefn eq(&self, other: &ProposalSummary) -> bool
fn eq(&self, other: &ProposalSummary) -> bool
This method tests for self and other values to be equal, and is used
by ==. Read more
sourcefn ne(&self, other: &ProposalSummary) -> bool
fn ne(&self, other: &ProposalSummary) -> bool
This method tests for !=.
impl StructuralPartialEq for ProposalSummary
Auto Trait Implementations
impl RefUnwindSafe for ProposalSummary
impl Send for ProposalSummary
impl Sync for ProposalSummary
impl Unpin for ProposalSummary
impl UnwindSafe for ProposalSummary
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
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber to this type, returning a
WithDispatch wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber to this type, returning a
WithDispatch wrapper. Read more