pub enum Action<'a> {
RecordWrite {
collection: &'a str,
rkey: Option<&'a str>,
space: Option<&'a str>,
operation: Operation,
client: Option<&'a str>,
value: Option<&'a Value>,
existing: Option<&'a Value>,
},
BlobWrite {
mime_type: &'a str,
sniffed: &'a str,
size: u64,
space: Option<&'a str>,
},
OauthAuthorize {
client_id: &'a str,
scopes: &'a [&'a str],
},
OauthToken {
client_id: &'a str,
grant: Option<&'a str>,
scopes: &'a [&'a str],
},
AccountCreate {
kind: &'a str,
asked: &'a str,
pool: &'a str,
zone: &'a str,
name: Option<&'a str>,
label: Option<&'a str>,
},
}Expand description
The action being asked about, with its resource and context.
Variants§
RecordWrite
A record write. value is the record after the write and
existing the record before it; each is absent when there is none.
Fields
BlobWrite
A blob upload.
Fields
OauthAuthorize
An authorization request from a client.
Fields
OauthToken
A token request from a client.
Fields
AccountCreate
Where a new account lands: one pool and zone a create could take.
Fields
Implementations§
Trait Implementations§
Source§impl<'a> PartialEq for Action<'a>
impl<'a> PartialEq for Action<'a>
impl<'a> Copy for Action<'a>
impl<'a> Eq for Action<'a>
impl<'a> StructuralPartialEq for Action<'a>
Auto Trait Implementations§
impl<'a> Freeze for Action<'a>
impl<'a> RefUnwindSafe for Action<'a>
impl<'a> Send for Action<'a>
impl<'a> Sync for Action<'a>
impl<'a> Unpin for Action<'a>
impl<'a> UnsafeUnpin for Action<'a>
impl<'a> UnwindSafe for Action<'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.§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