pub struct CaptureVisibility {
pub state: Option<VisibilityTier>,
pub embargo_until: Option<DateTime<Utc>>,
pub entries: Vec<EntryVisibilityEntry>,
}Expand description
An authored visibility floor, independent of Thread sync and audience policy. Entry commitments bind to this capture’s tree; unchanged commitments also inherit ancestor overrides when a reader evaluates the lineage.
Fields§
§state: Option<VisibilityTier>No explicit tier uses the Spool’s applicable default.
embargo_until: Option<DateTime<Utc>>Advisory only. A later authorized transition releases an embargo.
entries: Vec<EntryVisibilityEntry>Sorted, unique (tree_id, leaf_hash) overrides for this source tree.
Implementations§
Source§impl CaptureVisibility
impl CaptureVisibility
Sourcepub fn validate(&self, source: &State) -> Result<(), HeddleError>
pub fn validate(&self, source: &State) -> Result<(), HeddleError>
Validate bounded canonical declarations. Source publication additionally proves each named tree and salted leaf belongs to the selected closure.
Sourcepub fn entry_sidecar(
&self,
source: &State,
) -> Result<Option<EntryVisibility>, HeddleError>
pub fn entry_sidecar( &self, source: &State, ) -> Result<Option<EntryVisibility>, HeddleError>
Reconstruct the existing sidecar from the source identity covered by the same signature. No caller-supplied change or root can substitute for it.
Trait Implementations§
Source§impl Clone for CaptureVisibility
impl Clone for CaptureVisibility
Source§fn clone(&self) -> CaptureVisibility
fn clone(&self) -> CaptureVisibility
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 CaptureVisibility
impl Debug for CaptureVisibility
Source§impl<'de> Deserialize<'de> for CaptureVisibility
impl<'de> Deserialize<'de> for CaptureVisibility
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<CaptureVisibility, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<CaptureVisibility, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for CaptureVisibility
Source§impl PartialEq for CaptureVisibility
impl PartialEq for CaptureVisibility
Source§impl Serialize for CaptureVisibility
impl Serialize for CaptureVisibility
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,
Serialize this value into the given Serde serializer. Read more
impl StructuralPartialEq for CaptureVisibility
Auto Trait Implementations§
impl Freeze for CaptureVisibility
impl RefUnwindSafe for CaptureVisibility
impl Send for CaptureVisibility
impl Sync for CaptureVisibility
impl Unpin for CaptureVisibility
impl UnsafeUnpin for CaptureVisibility
impl UnwindSafe for CaptureVisibility
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
Mutably borrows from an owned value. Read more