#[non_exhaustive]pub struct CreateProposalInput {
pub client_request_token: Option<String>,
pub network_id: Option<String>,
pub member_id: Option<String>,
pub actions: Option<ProposalActions>,
pub description: Option<String>,
pub tags: Option<HashMap<String, String>>,
}
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.client_request_token: Option<String>
A unique, case-sensitive identifier that you provide to ensure the idempotency of the operation. An idempotent operation completes no more than one time. This identifier is required only if you make a service request directly using an HTTP client. It is generated automatically if you use an Amazon Web Services SDK or the CLI.
network_id: Option<String>
The unique identifier of the network for which the proposal is made.
member_id: Option<String>
The unique identifier of the member that is creating the proposal. This identifier is especially useful for identifying the member making the proposal when multiple members exist in a single Amazon Web Services account.
actions: Option<ProposalActions>
The type of actions proposed, such as inviting a member or removing a member. The types of Actions
in a proposal are mutually exclusive. For example, a proposal with Invitations
actions cannot also contain Removals
actions.
description: Option<String>
A description for the proposal that is visible to voting members, for example, "Proposal to add Example Corp. as member."
Tags to assign to the proposal.
Each tag consists of a key and an optional value. You can specify multiple key-value pairs in a single request with an overall maximum of 50 tags allowed per resource.
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.
Implementations§
source§impl CreateProposalInput
impl CreateProposalInput
sourcepub fn client_request_token(&self) -> Option<&str>
pub fn client_request_token(&self) -> Option<&str>
A unique, case-sensitive identifier that you provide to ensure the idempotency of the operation. An idempotent operation completes no more than one time. This identifier is required only if you make a service request directly using an HTTP client. It is generated automatically if you use an Amazon Web Services SDK or the CLI.
sourcepub fn network_id(&self) -> Option<&str>
pub fn network_id(&self) -> Option<&str>
The unique identifier of the network for which the proposal is made.
sourcepub fn member_id(&self) -> Option<&str>
pub fn member_id(&self) -> Option<&str>
The unique identifier of the member that is creating the proposal. This identifier is especially useful for identifying the member making the proposal when multiple members exist in a single Amazon Web Services account.
sourcepub fn actions(&self) -> Option<&ProposalActions>
pub fn actions(&self) -> Option<&ProposalActions>
The type of actions proposed, such as inviting a member or removing a member. The types of Actions
in a proposal are mutually exclusive. For example, a proposal with Invitations
actions cannot also contain Removals
actions.
sourcepub fn description(&self) -> Option<&str>
pub fn description(&self) -> Option<&str>
A description for the proposal that is visible to voting members, for example, "Proposal to add Example Corp. as member."
Tags to assign to the proposal.
Each tag consists of a key and an optional value. You can specify multiple key-value pairs in a single request with an overall maximum of 50 tags allowed per resource.
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.
source§impl CreateProposalInput
impl CreateProposalInput
sourcepub fn builder() -> CreateProposalInputBuilder
pub fn builder() -> CreateProposalInputBuilder
Creates a new builder-style object to manufacture CreateProposalInput
.
Trait Implementations§
source§impl Clone for CreateProposalInput
impl Clone for CreateProposalInput
source§fn clone(&self) -> CreateProposalInput
fn clone(&self) -> CreateProposalInput
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for CreateProposalInput
impl Debug for CreateProposalInput
source§impl PartialEq for CreateProposalInput
impl PartialEq for CreateProposalInput
source§fn eq(&self, other: &CreateProposalInput) -> bool
fn eq(&self, other: &CreateProposalInput) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for CreateProposalInput
Auto Trait Implementations§
impl Freeze for CreateProposalInput
impl RefUnwindSafe for CreateProposalInput
impl Send for CreateProposalInput
impl Sync for CreateProposalInput
impl Unpin for CreateProposalInput
impl UnwindSafe for CreateProposalInput
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
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more