pub struct KycInfo { /* private fields */ }
Expand description
A utility module that provides information about the current status of the KYC process.
Implementations§
source§impl KycInfo
impl KycInfo
sourcepub fn is_kycd(&self, address: &Address) -> bool
pub fn is_kycd(&self, address: &Address) -> bool
Returns true if the address
has a non-zero balance of kyc token, false otherwise.
sourcepub fn set_voting(&mut self, address: Address, voting_id: VotingId)
pub fn set_voting(&mut self, address: Address, voting_id: VotingId)
Sets a flag indicating there is ongoing voting for the given address
.
sourcepub fn clear_voting(&mut self, address: &Address)
pub fn clear_voting(&mut self, address: &Address)
Clears the flag indicating there is ongoing voting for the given address
.
sourcepub fn exists_ongoing_voting(&self, address: &Address) -> bool
pub fn exists_ongoing_voting(&self, address: &Address) -> bool
Indicates whether there is ongoing voting for the given address
.
sourcepub fn get_voting_subject(&self, voting_id: VotingId) -> Address
pub fn get_voting_subject(&self, voting_id: VotingId) -> Address
Gets the address of the voting subject.
Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for KycInfo
impl Send for KycInfo
impl Sync for KycInfo
impl Unpin for KycInfo
impl UnwindSafe for KycInfo
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