Struct aws_sdk_managedblockchain::model::Proposal[][src]

#[non_exhaustive]
pub struct Proposal {
Show 14 fields pub proposal_id: Option<String>, pub network_id: Option<String>, pub description: Option<String>, pub actions: Option<ProposalActions>, 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 yes_vote_count: Option<i32>, pub no_vote_count: Option<i32>, pub outstanding_vote_count: Option<i32>, pub tags: Option<HashMap<String, String>>, pub arn: Option<String>,
}
Expand description

Properties of a proposal on a Managed Blockchain network.

Applies only to Hyperledger Fabric.

Fields (Non-exhaustive)

This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional 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.

network_id: Option<String>

The unique identifier of the network for which the proposal is made.

description: Option<String>

The description of the proposal.

actions: Option<ProposalActions>

The actions to perform on the network if the proposal is APPROVED.

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 sufficient YES votes among members according to the VotingPolicy specified for the Network. The specified proposal actions are carried out.

  • REJECTED - The proposal was rejected with insufficient YES votes among members according to the VotingPolicy specified for the Network. The specified ProposalActions are not carried out.

  • EXPIRED - Members did not cast the number of votes required to determine the proposal outcome before the proposal expired. The specified ProposalActions are not carried out.

  • ACTION_FAILED - One or more of the specified ProposalActions in a proposal that was approved could not be completed because of an error. The ACTION_FAILED status occurs even if only one ProposalAction fails and other actions are successful.

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.

yes_vote_count: Option<i32>

The current total of YES votes cast on the proposal by members.

no_vote_count: Option<i32>

The current total of NO votes cast on the proposal by members.

outstanding_vote_count: Option<i32>

The number of votes remaining to be cast on the proposal by members. In other words, the number of members minus the sum of YES votes and NO votes.

tags: Option<HashMap<String, String>>

Tags assigned to the proposal. Each tag consists of a key and optional value.

For more information about tags, see Tagging Resources in the Amazon Managed Blockchain Ethereum Developer Guide, or Tagging Resources in the Amazon Managed Blockchain Hyperledger Fabric Developer Guide.

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

The unique identifier of the proposal.

The unique identifier of the network for which the proposal is made.

The description of the proposal.

The actions to perform on the network if the proposal is APPROVED.

The unique identifier of the member that created the proposal.

The name of the member that created the proposal.

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 sufficient YES votes among members according to the VotingPolicy specified for the Network. The specified proposal actions are carried out.

  • REJECTED - The proposal was rejected with insufficient YES votes among members according to the VotingPolicy specified for the Network. The specified ProposalActions are not carried out.

  • EXPIRED - Members did not cast the number of votes required to determine the proposal outcome before the proposal expired. The specified ProposalActions are not carried out.

  • ACTION_FAILED - One or more of the specified ProposalActions in a proposal that was approved could not be completed because of an error. The ACTION_FAILED status occurs even if only one ProposalAction fails and other actions are successful.

The date and time that the proposal was created.

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.

The current total of YES votes cast on the proposal by members.

The current total of NO votes cast on the proposal by members.

The number of votes remaining to be cast on the proposal by members. In other words, the number of members minus the sum of YES votes and NO votes.

Tags assigned to the proposal. Each tag consists of a key and optional value.

For more information about tags, see Tagging Resources in the Amazon Managed Blockchain Ethereum Developer Guide, or Tagging Resources in the Amazon Managed Blockchain Hyperledger Fabric Developer Guide.

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.

Creates a new builder-style object to manufacture Proposal

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more

Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Performs the conversion.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more