pub enum ScopeWarning {
PartialWildcard(String),
NoAudience,
EveryMethodAndAudience,
NotAServiceReference(String),
RepoManage,
ActionList,
UnknownParameter(String),
RepeatedList(String),
RepeatedValue(String),
Unreadable(String),
}Expand description
One way an atom’s form departs from the permission spec, and how this grammar reads it anyway. A spec form carries none.
Variants§
PartialWildcard(String)
A repo: collection or rpc: method ending .*, such as
app.bsky.*: the NSIDs under that prefix, at any depth.
NoAudience
An rpc: scope with no aud: every audience.
EveryMethodAndAudience
An rpc: scope for every method at every audience: as it is written.
NotAServiceReference(String)
An rpc: aud that is neither * nor a DID with a service
fragment: that audience alone, compared as written.
RepoManage
action=manage on a repo: scope: no record operation, so the
scope adds no write.
ActionList
A comma list of actions, such as action=create,update: each action
in it, as the repeated parameter would name them.
UnknownParameter(String)
A parameter the scope’s kind does not take: ignored.
RepeatedList(String)
A list parameter written both after the : and by name, such as
blob:image/png?accept=text/html: every value.
RepeatedValue(String)
A parameter that takes one value given more than once: the first.
Unreadable(String)
An atom that names no scope this grammar reads, for the reason given:
an unknown kind, such as space:*, or a value its kind does not
define, such as account:status. It is kept as written, as
crate::Scope::Unknown, and admits only itself.
Trait Implementations§
Source§impl Clone for ScopeWarning
impl Clone for ScopeWarning
Source§fn clone(&self) -> ScopeWarning
fn clone(&self) -> ScopeWarning
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 ScopeWarning
impl Debug for ScopeWarning
Source§impl Display for ScopeWarning
impl Display for ScopeWarning
Source§impl Hash for ScopeWarning
impl Hash for ScopeWarning
Source§impl Ord for ScopeWarning
impl Ord for ScopeWarning
Source§fn cmp(&self, other: &ScopeWarning) -> Ordering
fn cmp(&self, other: &ScopeWarning) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Source§impl PartialEq for ScopeWarning
impl PartialEq for ScopeWarning
Source§fn eq(&self, other: &ScopeWarning) -> bool
fn eq(&self, other: &ScopeWarning) -> bool
self and other values to be equal, and is used by ==.Source§impl PartialOrd for ScopeWarning
impl PartialOrd for ScopeWarning
impl Eq for ScopeWarning
impl StructuralPartialEq for ScopeWarning
Auto Trait Implementations§
impl Freeze for ScopeWarning
impl RefUnwindSafe for ScopeWarning
impl Send for ScopeWarning
impl Sync for ScopeWarning
impl Unpin for ScopeWarning
impl UnsafeUnpin for ScopeWarning
impl UnwindSafe for ScopeWarning
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> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
§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.