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: String
Implementations§
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 Freeze for LifeCycle
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> FromResponse for Twhere
T: DeserializeOwned,
impl<T> FromResponse for Twhere
T: DeserializeOwned,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more