pub enum FundError {
EmptyName,
EarmarkedRequiresPurpose,
EarmarkedRequiresPositiveTarget,
NonEarmarkedCannotHavePurpose,
NonEarmarkedCannotHaveTarget,
NonPositiveContribution,
ExpensePurposeMismatch {
fund_purpose: String,
expense_work_ref: String,
},
InsufficientMajorityForCreation {
required: MajorityType,
used: MajorityType,
},
OnlyEarmarkedFundsCanBeReassigned,
ReassignmentRequiresAdoptedResolution,
NonPositiveReassignmentAmount,
ReassignmentAmountExceedsBalance,
}Expand description
Erreur typée du domaine Fund — jamais de Result<_, String>
(CRITICAL.md #4).
Variants§
EmptyName
Nom de fonds vide.
EarmarkedRequiresPurpose
Un fonds affecté doit porter un objet précis.
EarmarkedRequiresPositiveTarget
Un fonds affecté doit porter un objectif d’épargne strictement positif.
NonEarmarkedCannotHavePurpose
Roulement/réserve ne portent pas d’objet (réservé aux fonds affectés).
NonEarmarkedCannotHaveTarget
Roulement/réserve ne portent pas d’objectif d’épargne.
NonPositiveContribution
Versement au fonds non strictement positif.
ExpensePurposeMismatch
Dépense imputée à un fonds affecté pour un autre objet que le sien.
InsufficientMajorityForCreation
La majorité obtenue pour créer un fonds affecté est sous le seuil des gros travaux (Art. 3.88, 2/3).
OnlyEarmarkedFundsCanBeReassigned
Seul un fonds affecté peut être réaffecté.
ReassignmentRequiresAdoptedResolution
La réaffectation exige une décision d’AG adoptée.
NonPositiveReassignmentAmount
Montant réaffecté non strictement positif.
ReassignmentAmountExceedsBalance
Montant réaffecté supérieur au solde disponible.
Trait Implementations§
Source§impl Error for FundError
impl Error for FundError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()
impl StructuralPartialEq for FundError
Auto Trait Implementations§
impl Freeze for FundError
impl RefUnwindSafe for FundError
impl Send for FundError
impl Sync for FundError
impl Unpin for FundError
impl UnsafeUnpin for FundError
impl UnwindSafe for FundError
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Fake for T
impl<T> Fake for T
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§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>
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>
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