Struct fplus_lib::core::application::file::ApplicationFile
source · pub struct ApplicationFile {
pub version: u8,
pub id: String,
pub issue_number: String,
pub client: Client,
pub project: Project,
pub datacap: Datacap,
pub lifecycle: LifeCycle,
pub allocation: Allocations,
}Fields§
§version: u8§id: String§issue_number: String§client: Client§project: Project§datacap: Datacap§lifecycle: LifeCycle§allocation: AllocationsImplementations§
source§impl ApplicationFile
impl ApplicationFile
pub async fn new( issue_number: String, multisig_address: String, version: u8, id: String, client: Client, project: Project, datacap: Datacap ) -> Self
pub fn reached_total_datacap(&self) -> Self
pub fn move_back_to_governance_review(&self) -> Self
pub fn complete_governance_review( &self, actor: String, request: AllocationRequest ) -> Self
pub fn start_refill_request(&mut self, request: AllocationRequest) -> Self
pub fn add_signer_to_allocation( &self, signer: Notary, request_id: String, app_lifecycle: LifeCycle ) -> Self
pub fn add_signer_to_allocation_and_complete( &self, signer: Notary, request_id: String, app_lifecycle: LifeCycle ) -> Self
Trait Implementations§
source§impl Clone for ApplicationFile
impl Clone for ApplicationFile
source§fn clone(&self) -> ApplicationFile
fn clone(&self) -> ApplicationFile
Returns a copy of the value. Read more
1.0.0 · 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 ApplicationFile
impl Debug for ApplicationFile
source§impl<'de> Deserialize<'de> for ApplicationFile
impl<'de> Deserialize<'de> for ApplicationFile
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
source§impl FromStr for ApplicationFile
impl FromStr for ApplicationFile
Auto Trait Implementations§
impl RefUnwindSafe for ApplicationFile
impl Send for ApplicationFile
impl Sync for ApplicationFile
impl Unpin for ApplicationFile
impl UnwindSafe for ApplicationFile
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