pub struct HrpSet {Show 19 fields
pub package: String,
pub resource: String,
pub component: String,
pub account: String,
pub identity: String,
pub consensus_manager: String,
pub validator: String,
pub access_controller: String,
pub pool: String,
pub transaction_tracker: String,
pub internal_vault: String,
pub internal_component: String,
pub internal_key_value_store: String,
pub transaction_intent: String,
pub signed_transaction_intent: String,
pub notarized_transaction: String,
pub round_update_transaction: String,
pub system_transaction: String,
pub ledger_transaction: String,
}
Expand description
Represents an HRP set (typically corresponds to a network).
Fields§
§package: String
§resource: String
§component: String
§account: String
§identity: String
§consensus_manager: String
§validator: String
§access_controller: String
§pool: String
§transaction_tracker: String
§internal_vault: String
§internal_component: String
§internal_key_value_store: String
§transaction_intent: String
§signed_transaction_intent: String
§notarized_transaction: String
§round_update_transaction: String
§system_transaction: String
§ledger_transaction: String
Implementations§
source§impl HrpSet
impl HrpSet
pub fn get_entity_hrp(&self, entity: &EntityType) -> &str
Trait Implementations§
source§impl From<&NetworkDefinition> for HrpSet
impl From<&NetworkDefinition> for HrpSet
source§fn from(network_definition: &NetworkDefinition) -> HrpSet
fn from(network_definition: &NetworkDefinition) -> HrpSet
Converts to this type from the input type.
Auto Trait Implementations§
impl RefUnwindSafe for HrpSet
impl Send for HrpSet
impl Sync for HrpSet
impl Unpin for HrpSet
impl UnwindSafe for HrpSet
Blanket Implementations§
§impl<U> As for U
impl<U> As for U
§fn as_<T>(self) -> Twhere
T: CastFrom<U>,
fn as_<T>(self) -> Twhere
T: CastFrom<U>,
Casts
self
to type T
. The semantics of numeric casting with the as
operator are followed, so <T as As>::as_::<U>
can be used in the same way as T as U
for numeric conversions. Read moresource§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
Mutably borrows from an owned value. Read more