pub struct SignedEntityConfig {
    pub allowed_discriminants: BTreeSet<SignedEntityTypeDiscriminants>,
    pub cardano_transactions_signing_config: CardanoTransactionsSigningConfig,
}Expand description
Convert TimePoint to SignedEntityType and list allowed signed entity types and discriminants.
Fields§
§allowed_discriminants: BTreeSet<SignedEntityTypeDiscriminants>List of discriminants that the node is allowed to sign
cardano_transactions_signing_config: CardanoTransactionsSigningConfigCardano transactions signing configuration
Implementations§
Source§impl SignedEntityConfig
 
impl SignedEntityConfig
Sourcepub const DEFAULT_ALLOWED_DISCRIMINANTS: [SignedEntityTypeDiscriminants; 1]
 
pub const DEFAULT_ALLOWED_DISCRIMINANTS: [SignedEntityTypeDiscriminants; 1]
Default allowed discriminants
Appended to the allowed discriminants in the configuration.
Sourcepub fn append_allowed_signed_entity_types_discriminants(
    discriminants: BTreeSet<SignedEntityTypeDiscriminants>,
) -> BTreeSet<SignedEntityTypeDiscriminants>
 
pub fn append_allowed_signed_entity_types_discriminants( discriminants: BTreeSet<SignedEntityTypeDiscriminants>, ) -> BTreeSet<SignedEntityTypeDiscriminants>
Append to the given list of allowed signed entity types discriminants the Self::DEFAULT_ALLOWED_DISCRIMINANTS if not already present.
Sourcepub fn list_allowed_signed_entity_types_discriminants(
    &self,
) -> BTreeSet<SignedEntityTypeDiscriminants>
 
pub fn list_allowed_signed_entity_types_discriminants( &self, ) -> BTreeSet<SignedEntityTypeDiscriminants>
Create the deduplicated list of allowed signed entity types discriminants.
The list is the aggregation of Self::DEFAULT_ALLOWED_DISCRIMINANTS and
allowed_discriminants.
Sourcepub fn time_point_to_signed_entity<D: Into<SignedEntityTypeDiscriminants>>(
    &self,
    discriminant: D,
    time_point: &TimePoint,
) -> StdResult<SignedEntityType>
 
pub fn time_point_to_signed_entity<D: Into<SignedEntityTypeDiscriminants>>( &self, discriminant: D, time_point: &TimePoint, ) -> StdResult<SignedEntityType>
Convert this time point to a signed entity type based on the given discriminant.
Sourcepub fn list_allowed_signed_entity_types(
    &self,
    time_point: &TimePoint,
) -> StdResult<Vec<SignedEntityType>>
 
pub fn list_allowed_signed_entity_types( &self, time_point: &TimePoint, ) -> StdResult<Vec<SignedEntityType>>
Create the deduplicated list of allowed signed entity types discriminants.
The list is the aggregation of Self::DEFAULT_ALLOWED_DISCRIMINANTS and
allowed_discriminants.
Trait Implementations§
Source§impl Clone for SignedEntityConfig
 
impl Clone for SignedEntityConfig
Source§fn clone(&self) -> SignedEntityConfig
 
fn clone(&self) -> SignedEntityConfig
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
 
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for SignedEntityConfig
 
impl Debug for SignedEntityConfig
Source§impl Dummy for SignedEntityConfig
 
impl Dummy for SignedEntityConfig
Source§fn dummy() -> Self
 
fn dummy() -> Self
Return a dummy SignedEntityConfig (test-only).
Source§impl PartialEq for SignedEntityConfig
 
impl PartialEq for SignedEntityConfig
impl Eq for SignedEntityConfig
impl StructuralPartialEq for SignedEntityConfig
Auto Trait Implementations§
impl Freeze for SignedEntityConfig
impl RefUnwindSafe for SignedEntityConfig
impl Send for SignedEntityConfig
impl Sync for SignedEntityConfig
impl Unpin for SignedEntityConfig
impl UnwindSafe for SignedEntityConfig
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> CheckedAs for T
 
impl<T> CheckedAs for T
Source§fn checked_as<Dst>(self) -> Option<Dst>where
    T: CheckedCast<Dst>,
 
fn checked_as<Dst>(self) -> Option<Dst>where
    T: CheckedCast<Dst>,
Source§impl<Src, Dst> CheckedCastFrom<Src> for Dstwhere
    Src: CheckedCast<Dst>,
 
impl<Src, Dst> CheckedCastFrom<Src> for Dstwhere
    Src: CheckedCast<Dst>,
Source§fn checked_cast_from(src: Src) -> Option<Dst>
 
fn checked_cast_from(src: Src) -> Option<Dst>
Source§impl<T> CloneToUninit for Twhere
    T: Clone,
 
impl<T> CloneToUninit for Twhere
    T: Clone,
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