pub enum SubscriptionKind {
Capsule,
Profile,
}Expand description
WHAT a subscription follows: ordinary content, or a dig-profile.
Serializes to a lowercase, language-neutral wire token ("capsule" / "profile").
§Absent means Capsule, and that is a contract, not a convenience
Every subscription written before this field existed is untagged, and a node’s
subscriptions.json on a real machine is FULL of them. A required kind would make those rows
fail to deserialize, and a node that cannot read its own subscription file starts with an empty
one — an upgrade that silently unsubscribes a user from everything they had. So the field is
#[serde(default)] everywhere it appears, and the default is the meaning those untagged rows
already had: a capsule.
Variants§
Capsule
Ordinary store content — the meaning every untagged subscription already carries.
Profile
A dig-profile: the node additionally follows the profile ROOT and syncs its body from peers.
Trait Implementations§
Source§impl Clone for SubscriptionKind
impl Clone for SubscriptionKind
Source§fn clone(&self) -> SubscriptionKind
fn clone(&self) -> SubscriptionKind
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more