coven_foundation/sharing.rs
1//! Why sharing a store was refused for good (ยง13.2).
2
3/// Why the provider refused to share the store, in a way only a person can
4/// fix: the invited address's side or the inviting account's. Retrying is
5/// refused the same way until an address or an account changes.
6#[derive(Clone, Copy, Debug, PartialEq, Eq, serde::Serialize, serde::Deserialize)]
7pub enum SharingRefusal {
8 /// The provider won't take the invited address: it names no account the
9 /// provider can share with.
10 InvalidAddress,
11 /// The inviting account's email is unverified.
12 EmailUnverified,
13 /// The inviting account's team doesn't share outside the team.
14 TeamSharingOff,
15 /// The inviting account's plan has no sharing.
16 PlanWithoutSharing,
17 /// The folder holds as many members or pending invitations as the
18 /// inviting account allows.
19 TooManyMembers,
20}