pub struct DeploymentAttributes<'a> {
pub pds_did: &'a str,
pub pds_hostname: &'a str,
pub operator_did: Option<&'a str>,
}Expand description
Facts about this deployment a policy may reference, independent of the
account or the write — a different kind of fact from
SubjectAttributes, which is why it is its own type rather than a
field folded into that one. An evaluator asking for the PDS’s own DID or
hostname is asking a different question than one asking about the
account, and naming them separately keeps that visible at the call site
— for a rule like “deny a handle that is not under this deployment’s
zone”.
Fields§
§pds_did: &'a strThis PDS’s own DID.
pds_hostname: &'a strThis PDS’s own hostname.
operator_did: Option<&'a str>The DID of the account that vouches for this deployment. None
until this server has observed its operator’s claim, and on every
subject but a write, which is the only one a rule reads it from
today.
Trait Implementations§
Source§impl<'a> Clone for DeploymentAttributes<'a>
impl<'a> Clone for DeploymentAttributes<'a>
Source§fn clone(&self) -> DeploymentAttributes<'a>
fn clone(&self) -> DeploymentAttributes<'a>
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<'a> Debug for DeploymentAttributes<'a>
impl<'a> Debug for DeploymentAttributes<'a>
Source§impl<'a> Default for DeploymentAttributes<'a>
impl<'a> Default for DeploymentAttributes<'a>
Source§fn default() -> DeploymentAttributes<'a>
fn default() -> DeploymentAttributes<'a>
Returns the “default value” for a type. Read more
Source§impl<'a> PartialEq for DeploymentAttributes<'a>
impl<'a> PartialEq for DeploymentAttributes<'a>
Source§fn eq(&self, other: &DeploymentAttributes<'a>) -> bool
fn eq(&self, other: &DeploymentAttributes<'a>) -> bool
Tests for
self and other values to be equal, and is used by ==.impl<'a> Copy for DeploymentAttributes<'a>
impl<'a> Eq for DeploymentAttributes<'a>
impl<'a> StructuralPartialEq for DeploymentAttributes<'a>
Auto Trait Implementations§
impl<'a> Freeze for DeploymentAttributes<'a>
impl<'a> RefUnwindSafe for DeploymentAttributes<'a>
impl<'a> Send for DeploymentAttributes<'a>
impl<'a> Sync for DeploymentAttributes<'a>
impl<'a> Unpin for DeploymentAttributes<'a>
impl<'a> UnsafeUnpin for DeploymentAttributes<'a>
impl<'a> UnwindSafe for DeploymentAttributes<'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
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.