pub enum ReaderRule {
Author {
until: Option<String>,
},
Field {
field: String,
},
AuthorAnd {
role: Role,
},
}Expand description
Who reads a record of a kind, when it is not every member: what a tilolang type says with
(readers: ...) and a Rust resource with #[resource(readers = "...")], carried in the
kind’s published surface. The store works out the reader set from it, the record’s author and
its fields, and places the record in a document of that set alone, sealed to its key group; a
record whose set changes moves to the new set’s group, sealed afresh. Whoever left the set
keeps what they already held of it, its ciphertext and the keys they had, as after any
revocation, and nothing written after.
Variants§
Author
author, author until sent: the person who made the record, on each of their devices;
every member once the Bool field until names holds, which it never stops holding (a
draft until it is sent).
Field
A field’s name: the people its Set<Actor> names.
AuthorAnd
author and moderator: the person who made the record, and every member whose role
includes role (crate::Role::includes) whenever it is read. Who holds the role is
the workspace’s governance’s to say at each moment, never written into the record: a
member given the role reads what was written before, and one who loses it or leaves
reads nothing written after.
Implementations§
Source§impl ReaderRule
impl ReaderRule
Sourcepub fn parse(words: &str) -> Option<ReaderRule>
pub fn parse(words: &str) -> Option<ReaderRule>
The rule a type’s options write as words (author, author until sent,
author and moderator, or a field’s name); None when they name no rule.
Trait Implementations§
Source§impl Clone for ReaderRule
impl Clone for ReaderRule
Source§fn clone(&self) -> ReaderRule
fn clone(&self) -> ReaderRule
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for ReaderRule
impl Debug for ReaderRule
Source§impl<'de> Deserialize<'de> for ReaderRule
impl<'de> Deserialize<'de> for ReaderRule
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<ReaderRule, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<ReaderRule, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Source§impl Display for ReaderRule
impl Display for ReaderRule
impl Eq for ReaderRule
Source§impl PartialEq for ReaderRule
impl PartialEq for ReaderRule
Source§impl Serialize for ReaderRule
impl Serialize for ReaderRule
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
impl StructuralPartialEq for ReaderRule
Auto Trait Implementations§
impl Forget for ReaderRule
impl Freeze for ReaderRule
impl Move for ReaderRule
impl RefUnwindSafe for ReaderRule
impl Send for ReaderRule
impl Sync for ReaderRule
impl Unpin for ReaderRule
impl UnsafeUnpin for ReaderRule
impl UnwindSafe for ReaderRule
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,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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> ⓘ
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