pub struct Circumstance {
pub role: String,
pub audience: String,
pub quorum: u8,
pub environment: EnvironmentKind,
pub evaluatory: EvaluatoryFocus,
pub place_hint: u64,
}Expand description
Spatio-social-temporal circumstance for one attention session.
Pure data - does not enforce rights (see rights_filter + deontic).
Fields§
§role: StringSocial / organisational role label (employee, parent, patient) - free text cold path.
audience: StringAudience class (self, peer_dyad, team, public, court).
quorum: u8Required quorum of parties (1 = solo; 2+ multi-party consent).
environment: EnvironmentKind§evaluatory: EvaluatoryFocus§place_hint: u64Optional place/label hash carrier (0 = unset); hosts may set from geo/library place.
Implementations§
Source§impl Circumstance
impl Circumstance
pub fn private_sanctuary() -> Self
pub fn workplace_employee() -> Self
Sourcepub fn prefers_reduced_private_chrome(&self) -> bool
pub fn prefers_reduced_private_chrome(&self) -> bool
Whether this circumstance should bias representation away from private wing UI chrome.
Trait Implementations§
Source§impl Clone for Circumstance
impl Clone for Circumstance
Source§fn clone(&self) -> Circumstance
fn clone(&self) -> Circumstance
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for Circumstance
impl Debug for Circumstance
Source§impl Default for Circumstance
impl Default for Circumstance
Source§fn default() -> Circumstance
fn default() -> Circumstance
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for Circumstance
impl<'de> Deserialize<'de> for Circumstance
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for Circumstance
impl PartialEq for Circumstance
Source§fn eq(&self, other: &Circumstance) -> bool
fn eq(&self, other: &Circumstance) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for Circumstance
impl Serialize for Circumstance
impl Eq for Circumstance
impl StructuralPartialEq for Circumstance
Auto Trait Implementations§
impl Freeze for Circumstance
impl RefUnwindSafe for Circumstance
impl Send for Circumstance
impl Sync for Circumstance
impl Unpin for Circumstance
impl UnsafeUnpin for Circumstance
impl UnwindSafe for Circumstance
Blanket Implementations§
§impl<S, A> Aggregate<Result<S, Error>> for Awhere
A: Aggregate<S>,
impl<S, A> Aggregate<Result<S, Error>> for Awhere
A: Aggregate<S>,
Aggregate shares in an MPC protocol.
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
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§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>
Converts
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>
Converts
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§impl<T> NoneValue for Twhere
T: Default,
impl<T> NoneValue for Twhere
T: Default,
type NoneType = T
§fn null_value() -> T
fn null_value() -> T
The none-equivalent value.