pub type ApprovalDistributionMessage = Versioned<ApprovalDistributionMessage, ApprovalDistributionMessage, ApprovalDistributionMessage>;
Expand description
Version-annotated messages used by the approval distribution subsystem.
Aliased Type§
enum ApprovalDistributionMessage {
V1(ApprovalDistributionMessage),
V2(ApprovalDistributionMessage),
V3(ApprovalDistributionMessage),
}
Variants§
V1(ApprovalDistributionMessage)
V1 type.
V2(ApprovalDistributionMessage)
V2 type.
V3(ApprovalDistributionMessage)
V3 type
Trait Implementations§
source§impl<'a> TryFrom<&'a Versioned<ValidationProtocol, ValidationProtocol, ValidationProtocol>> for ApprovalDistributionMessage
impl<'a> TryFrom<&'a Versioned<ValidationProtocol, ValidationProtocol, ValidationProtocol>> for ApprovalDistributionMessage
§type Error = WrongVariant
type Error = WrongVariant
The type returned in the event of a conversion error.
source§fn try_from(
x: &'a VersionedValidationProtocol,
) -> Result<ApprovalDistributionMessage, Self::Error>
fn try_from( x: &'a VersionedValidationProtocol, ) -> Result<ApprovalDistributionMessage, Self::Error>
Performs the conversion.
source§impl TryFrom<Versioned<ValidationProtocol, ValidationProtocol, ValidationProtocol>> for ApprovalDistributionMessage
impl TryFrom<Versioned<ValidationProtocol, ValidationProtocol, ValidationProtocol>> for ApprovalDistributionMessage
§type Error = WrongVariant
type Error = WrongVariant
The type returned in the event of a conversion error.
source§fn try_from(
x: VersionedValidationProtocol,
) -> Result<ApprovalDistributionMessage, Self::Error>
fn try_from( x: VersionedValidationProtocol, ) -> Result<ApprovalDistributionMessage, Self::Error>
Performs the conversion.