pub struct Lookup<'a> {
pub name: &'a str,
pub account: &'a str,
pub handle: Option<&'a str>,
pub uri: &'a str,
pub found: Found<'a>,
}Expand description
What a policy’s declared lookup found in somebody else’s repository.
A policy declares the records its statements read in its own lookups
list. The write path reads each one before the write is judged and hands
the answers over here, so an engine reads them as ordinary fields of the
subject and Evaluator::evaluate
still takes a subject and nothing else. See docs/write-pipeline.md for
where the reading happens.
Fields§
§name: &'a strThe name the policy’s lookups entry gave this record, which is
what a statement calls it.
account: &'a strThe DID of the repository that was read.
handle: Option<&'a str>The handle the written record itself calls that account by, when it carries one: a mention’s text. Nothing checks the DID answers to it, so it is for telling the writer who their own record named.
uri: &'a strThe at-uri that was read, so a refusal can carry something a person
can open. A lookup with no rkey reads a collection, and this is
the collection’s uri.
found: Found<'a>What was there. See Found.
Trait Implementations§
Source§impl<'a> PartialEq for Lookup<'a>
impl<'a> PartialEq for Lookup<'a>
impl<'a> Copy for Lookup<'a>
impl<'a> Eq for Lookup<'a>
impl<'a> StructuralPartialEq for Lookup<'a>
Auto Trait Implementations§
impl<'a> Freeze for Lookup<'a>
impl<'a> RefUnwindSafe for Lookup<'a>
impl<'a> Send for Lookup<'a>
impl<'a> Sync for Lookup<'a>
impl<'a> Unpin for Lookup<'a>
impl<'a> UnsafeUnpin for Lookup<'a>
impl<'a> UnwindSafe for Lookup<'a>
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<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
§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
key and return true if they are equal.