pub struct InsertPermission {
pub columns: ColumnSet,
pub check: Value,
pub set: HashMap<String, Value>,
pub backend_only: bool,
}Expand description
What a role may write, and what the result has to satisfy.
Fields§
§columns: ColumnSetThe columns a request may supply.
check: ValueWhat every written row must satisfy. Unlike a filter, this is checked
against the row after it is built, which is what stops a caller
inserting a row it would not then be allowed to read.
set: HashMap<String, Value>Columns the server fills in, overriding whatever the request said. The
value may be a session variable, which is how author_id comes from
the caller’s identity rather than from the caller.
backend_only: boolReachable only by a caller that proved it holds the admin secret, whatever role it then claims. A mutation a client must not be able to reach by naming a role.
Trait Implementations§
Source§impl Clone for InsertPermission
impl Clone for InsertPermission
Source§fn clone(&self) -> InsertPermission
fn clone(&self) -> InsertPermission
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 InsertPermission
impl Debug for InsertPermission
Source§impl Default for InsertPermission
impl Default for InsertPermission
Source§fn default() -> InsertPermission
fn default() -> InsertPermission
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for InsertPermission
impl<'de> Deserialize<'de> for InsertPermission
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for InsertPermission
impl PartialEq for InsertPermission
Source§impl Serialize for InsertPermission
impl Serialize for InsertPermission
impl StructuralPartialEq for InsertPermission
Auto Trait Implementations§
impl Freeze for InsertPermission
impl RefUnwindSafe for InsertPermission
impl Send for InsertPermission
impl Sync for InsertPermission
impl Unpin for InsertPermission
impl UnsafeUnpin for InsertPermission
impl UnwindSafe for InsertPermission
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<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
impl<A, B, T> HttpServerConnExec<A, B> for Twhere
B: Body,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§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