pub struct UrlProposal {Show 13 fields
pub url_pattern: String,
pub proposer: [u8; 32],
pub bond_amount: u128,
pub voters: HashSet<Vec<u8>>,
pub votes_for_stake: u64,
pub votes_against_stake: u64,
pub created_at: u64,
pub voting_ends_at: u64,
pub approved: bool,
pub rejected: bool,
pub slashed: bool,
pub response_format: UrlResponseFormat,
pub schema_id: Option<[u8; 32]>,
}Fields§
§url_pattern: String§proposer: [u8; 32]§bond_amount: u128§voters: HashSet<Vec<u8>>§votes_for_stake: u64§votes_against_stake: u64§created_at: u64§voting_ends_at: u64§approved: bool§rejected: bool§slashed: bool§response_format: UrlResponseFormat§schema_id: Option<[u8; 32]>Implementations§
Source§impl UrlProposal
impl UrlProposal
pub fn voting_open(&self, current_height: u64) -> bool
Trait Implementations§
Source§impl Clone for UrlProposal
impl Clone for UrlProposal
Source§fn clone(&self) -> UrlProposal
fn clone(&self) -> UrlProposal
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 UrlProposal
impl Debug for UrlProposal
Source§impl<'de> Deserialize<'de> for UrlProposal
impl<'de> Deserialize<'de> for UrlProposal
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 UrlProposal
impl RefUnwindSafe for UrlProposal
impl Send for UrlProposal
impl Sync for UrlProposal
impl Unpin for UrlProposal
impl UnsafeUnpin for UrlProposal
impl UnwindSafe for UrlProposal
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