#[repr(i32)]pub enum GovernanceMailKind {
Unspecified = 0,
PayoutApproval = 1,
PayoutOutcome = 2,
ApprovalTokenBurned = 3,
PaymentConsent = 4,
PaymentApproval = 5,
FeePolicyApproval = 6,
FeePolicyNotice = 7,
PaymentOutcome = 8,
}Expand description
The typed governance mails this plane knows how to render.
Variants§
Unspecified = 0
PayoutApproval = 1
The money plane asking an owner to approve a revenue payout.
PayoutOutcome = 2
The money plane telling the owners a payout was decided, executed or failed.
ApprovalTokenBurned = 3
The money plane warning the owners that a token burned on failed code attempts.
PaymentConsent = 4
The money plane asking ONE user to consent to a payment that moves THEIR money.
The only kind here that is not addressed to the consilium, and therefore the only one whose recipient rule is IDENTITY rather than role: an ordinary investor consents to their own transfer, and no seat is involved. See PaymentConsentMail.
PaymentApproval = 5
The money plane asking an owner to approve a PAYMENT whose source is fund-owned money — the consilium counterpart of PAYMENT_CONSENT. Addressed to a seated owner under the same rule as the payout kinds; what differs is only what the mail describes: two ends of a transfer in words, not a rail and an address. See PaymentApprovalMail for why the payout template cannot carry it.
FeePolicyApproval = 6
The money plane asking an owner to approve NEW FEE TERMS for a fund — the consilium over the price every investor in that fund pays. Addressed like PAYMENT_APPROVAL: a seated owner at a verified address, because the mail carries a link and the code that arms it. See FeePolicyApprovalMail.
FeePolicyNotice = 7
The money plane telling ONE investor that the fee terms of a fund they hold are changing. Addressed by IDENTITY like PAYMENT_CONSENT — the recipient must BE the investor the payload names — and, like a consent, it leaves an in-app trace. It asks for nothing and carries no code: it is notice. See FeePolicyNoticeMail.
PaymentOutcome = 8
The money plane telling the subject of a payment, or a staff member, that the payment was cancelled before it moved anything because its consent could no longer be given: the consent link burned on wrong codes, or was invalidated. Addressed to the subject the payload names OR to an admin/owner, at a verified address; the subject’s copy leaves an in-app trace like a consent. No link and no code. See PaymentOutcomeMail.
Implementations§
Source§impl GovernanceMailKind
impl GovernanceMailKind
Sourcepub const fn is_valid(value: i32) -> bool
pub const fn is_valid(value: i32) -> bool
Returns true if value is a variant of GovernanceMailKind.
Sourcepub fn from_i32(value: i32) -> Option<GovernanceMailKind>
👎Deprecated: Use the TryFrom<i32> implementation instead
pub fn from_i32(value: i32) -> Option<GovernanceMailKind>
Use the TryFrom<i32> implementation instead
Converts an i32 to a GovernanceMailKind, or None if value is not a valid variant.
Source§impl GovernanceMailKind
impl GovernanceMailKind
Sourcepub fn as_str_name(&self) -> &'static str
pub fn as_str_name(&self) -> &'static str
String value of the enum field names used in the ProtoBuf definition.
The values are not transformed in any way and thus are considered stable (if the ProtoBuf definition does not change) and safe for programmatic use.
Sourcepub fn from_str_name(value: &str) -> Option<GovernanceMailKind>
pub fn from_str_name(value: &str) -> Option<GovernanceMailKind>
Creates an enum from field names used in the ProtoBuf definition.
Trait Implementations§
Source§impl Clone for GovernanceMailKind
impl Clone for GovernanceMailKind
Source§fn clone(&self) -> GovernanceMailKind
fn clone(&self) -> GovernanceMailKind
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreimpl Copy for GovernanceMailKind
Source§impl Debug for GovernanceMailKind
impl Debug for GovernanceMailKind
Source§impl Default for GovernanceMailKind
impl Default for GovernanceMailKind
Source§fn default() -> GovernanceMailKind
fn default() -> GovernanceMailKind
impl Eq for GovernanceMailKind
Source§impl Hash for GovernanceMailKind
impl Hash for GovernanceMailKind
Source§impl Ord for GovernanceMailKind
impl Ord for GovernanceMailKind
Source§fn cmp(&self, other: &GovernanceMailKind) -> Ordering
fn cmp(&self, other: &GovernanceMailKind) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Source§impl PartialEq for GovernanceMailKind
impl PartialEq for GovernanceMailKind
Source§impl PartialOrd for GovernanceMailKind
impl PartialOrd for GovernanceMailKind
impl StructuralPartialEq for GovernanceMailKind
Source§impl TryFrom<i32> for GovernanceMailKind
impl TryFrom<i32> for GovernanceMailKind
Source§type Error = UnknownEnumValue
type Error = UnknownEnumValue
Source§fn try_from(value: i32) -> Result<GovernanceMailKind, UnknownEnumValue>
fn try_from(value: i32) -> Result<GovernanceMailKind, UnknownEnumValue>
Auto Trait Implementations§
impl Freeze for GovernanceMailKind
impl RefUnwindSafe for GovernanceMailKind
impl Send for GovernanceMailKind
impl Sync for GovernanceMailKind
impl Unpin for GovernanceMailKind
impl UnsafeUnpin for GovernanceMailKind
impl UnwindSafe for GovernanceMailKind
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.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> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T in a tonic::Request