pub struct BridgeInfo {
pub bridge_address: String,
pub name: String,
pub authorized_tokens: Vec<String>,
pub max_mint_per_tx: Option<u128>,
pub max_burn_per_tx: Option<u128>,
pub daily_mint_limit: Option<u128>,
pub daily_burn_limit: Option<u128>,
pub minted_today: u128,
pub burned_today: u128,
pub enabled: bool,
}Expand description
Serializable snapshot of a bridge authorization (for API responses).
Fields§
§bridge_address: String§name: String§max_mint_per_tx: Option<u128>§max_burn_per_tx: Option<u128>§daily_mint_limit: Option<u128>§daily_burn_limit: Option<u128>§minted_today: u128§burned_today: u128§enabled: boolTrait Implementations§
Source§impl Clone for BridgeInfo
impl Clone for BridgeInfo
Source§fn clone(&self) -> BridgeInfo
fn clone(&self) -> BridgeInfo
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for BridgeInfo
impl Debug for BridgeInfo
Source§impl<'de> Deserialize<'de> for BridgeInfo
impl<'de> Deserialize<'de> for BridgeInfo
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for BridgeInfo
impl RefUnwindSafe for BridgeInfo
impl Send for BridgeInfo
impl Sync for BridgeInfo
impl Unpin for BridgeInfo
impl UnsafeUnpin for BridgeInfo
impl UnwindSafe for BridgeInfo
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