pub struct LifeCycle {
pub state: AppState,
pub validated_at: String,
pub validated_by: String,
pub is_active: bool,
pub updated_at: String,
pub active_request: Option<String>,
pub client_on_chain_address: String,
pub multisig_address: String,
}Fields§
§state: AppState§validated_at: String§validated_by: String§is_active: bool§updated_at: String§active_request: Option<String>§client_on_chain_address: String§multisig_address: StringImplementations§
source§impl LifeCycle
impl LifeCycle
pub fn submitted( client_on_chain_address: String, multisig_address: String ) -> Self
sourcepub fn finish_governance_review(
&self,
actor: String,
current_allocation_id: String
) -> Self
pub fn finish_governance_review( &self, actor: String, current_allocation_id: String ) -> Self
Change Application state to Proposal from Governance Review Actor input is the actor who is changing the state
pub fn finish_proposal(&self) -> Self
pub fn finish_approval(&self) -> Self
pub fn get_state(&self) -> AppState
pub fn start_refill_request(&self, request_id: String) -> Self
pub fn get_active_allocation_id(self) -> Option<String>
pub fn reached_total_datacap(self) -> Self
pub fn move_back_to_governance_review(self) -> Self
Trait Implementations§
source§impl<'de> Deserialize<'de> for LifeCycle
impl<'de> Deserialize<'de> for LifeCycle
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 RefUnwindSafe for LifeCycle
impl Send for LifeCycle
impl Sync for LifeCycle
impl Unpin for LifeCycle
impl UnwindSafe for LifeCycle
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