pub struct LDNApplication {
pub application_id: String,
pub file_sha: String,
pub file_name: String,
pub branch_name: String,
/* private fields */
}
Fields§
§application_id: String
§file_sha: String
§file_name: String
§branch_name: String
Implementations§
Source§impl LDNApplication
impl LDNApplication
pub async fn single_active(pr_number: u64) -> Result<ApplicationFile, LDNError>
pub async fn load(application_id: String) -> Result<Self, LDNError>
pub async fn active( filter: Option<String>, ) -> Result<Vec<ApplicationFile>, LDNError>
Sourcepub async fn new_from_issue(
info: CreateApplicationInfo,
) -> Result<Self, LDNError>
pub async fn new_from_issue( info: CreateApplicationInfo, ) -> Result<Self, LDNError>
Create New Application
Sourcepub async fn complete_governance_review(
&self,
info: CompleteGovernanceReviewInfo,
) -> Result<ApplicationFile, LDNError>
pub async fn complete_governance_review( &self, info: CompleteGovernanceReviewInfo, ) -> Result<ApplicationFile, LDNError>
Move application from Governance Review to Proposal
Sourcepub async fn complete_new_application_proposal(
&self,
info: CompleteNewApplicationProposalInfo,
) -> Result<ApplicationFile, LDNError>
pub async fn complete_new_application_proposal( &self, info: CompleteNewApplicationProposalInfo, ) -> Result<ApplicationFile, LDNError>
Move application from Proposal to Approved
pub async fn complete_new_application_approval( &self, info: CompleteNewApplicationProposalInfo, ) -> Result<ApplicationFile, LDNError>
Sourcepub async fn total_dc_reached(application_id: String) -> Result<bool, LDNError>
pub async fn total_dc_reached(application_id: String) -> Result<bool, LDNError>
Return Application state
pub async fn file(&self) -> Result<ApplicationFile, LDNError>
pub async fn merged() -> Result<Vec<(Content, ApplicationFile)>, LDNError>
pub async fn refill(refill_info: RefillInfo) -> Result<bool, LDNError>
pub async fn validate_flow( pr_number: u64, actor: &str, ) -> Result<bool, LDNError>
pub async fn validate_trigger( pr_number: u64, actor: &str, ) -> Result<bool, LDNError>
pub async fn validate_approval(pr_number: u64) -> Result<bool, LDNError>
pub async fn validate_proposal(pr_number: u64) -> Result<bool, LDNError>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for LDNApplication
impl !RefUnwindSafe for LDNApplication
impl Send for LDNApplication
impl Sync for LDNApplication
impl Unpin for LDNApplication
impl !UnwindSafe for LDNApplication
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> 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