Struct jormungandrwallet::SettingsRust
pub struct SettingsRust {
pub fees: LinearFee,
pub discrimination: Discrimination,
pub block0_initial_hash: Hash,
pub block0_date: Block0Date,
pub slot_duration: u8,
pub time_era: TimeEra,
pub transaction_max_expiry_epochs: u8,
}
Fields§
§fees: LinearFee
§discrimination: Discrimination
§block0_initial_hash: Hash
§block0_date: Block0Date
§slot_duration: u8
§time_era: TimeEra
§transaction_max_expiry_epochs: u8
Implementations§
§impl Settings
impl Settings
pub fn new(block: &Block) -> Result<Settings, Error>
pub fn is_input_worth(&self, input: &Input) -> bool
pub fn is_input_worth(&self, input: &Input) -> bool
convenient function to check if a given input is covering at least its own input fees for a given transaction
pub fn discrimination(&self) -> Discrimination
Trait Implementations§
§impl<'de> Deserialize<'de> for Settings
impl<'de> Deserialize<'de> for Settings
§fn deserialize<__D>(
__deserializer: __D
) -> Result<Settings, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>( __deserializer: __D ) -> Result<Settings, <__D as Deserializer<'de>>::Error>where __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
§impl Serialize for Settings
impl Serialize for Settings
§fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>( &self, __serializer: __S ) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where __S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl Eq for Settings
impl StructuralEq for Settings
impl StructuralPartialEq for Settings
Auto Trait Implementations§
impl RefUnwindSafe for Settings
impl Send for Settings
impl Sync for Settings
impl Unpin for Settings
impl UnwindSafe for Settings
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
Mutably borrows from an owned value. Read more
§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more