pub struct DefineAccessStatement {
pub kind: DefineKind,
pub name: Expr,
pub base: Base,
pub access_type: AccessType,
pub authenticate: Option<Expr>,
pub context: Option<Expr>,
pub duration: AccessDuration,
pub comment: Expr,
}Fields§
§kind: DefineKind§name: Expr§base: Base§access_type: AccessType§authenticate: Option<Expr>§context: Option<Expr>§duration: AccessDuration§comment: ExprImplementations§
Source§impl DefineAccessStatement
impl DefineAccessStatement
Sourcepub fn random_key() -> String
pub fn random_key() -> String
Generate a random key to be used to sign session tokens This key will be used to sign tokens issued with this access method This value is used by default in every access method other than JWT
Trait Implementations§
Source§impl Clone for DefineAccessStatement
impl Clone for DefineAccessStatement
Source§impl Debug for DefineAccessStatement
impl Debug for DefineAccessStatement
Source§impl Default for DefineAccessStatement
impl Default for DefineAccessStatement
impl Eq for DefineAccessStatement
Source§impl From<DefineAccessStatement> for DefineAccessStatement
impl From<DefineAccessStatement> for DefineAccessStatement
Source§fn from(v: DefineAccessStatement) -> Self
fn from(v: DefineAccessStatement) -> Self
Converts to this type from the input type.
Source§impl From<DefineAccessStatement> for DefineAccessStatement
impl From<DefineAccessStatement> for DefineAccessStatement
Source§fn from(v: DefineAccessStatement) -> Self
fn from(v: DefineAccessStatement) -> Self
Converts to this type from the input type.
Source§impl Hash for DefineAccessStatement
impl Hash for DefineAccessStatement
Source§impl PartialEq for DefineAccessStatement
impl PartialEq for DefineAccessStatement
impl StructuralPartialEq for DefineAccessStatement
Source§impl ToSql for DefineAccessStatement
impl ToSql for DefineAccessStatement
Source§impl<V: Visitor> Visit<V> for DefineAccessStatement
impl<V: Visitor> Visit<V> for DefineAccessStatement
Auto Trait Implementations§
impl !Freeze for DefineAccessStatement
impl RefUnwindSafe for DefineAccessStatement
impl Send for DefineAccessStatement
impl Sync for DefineAccessStatement
impl Unpin for DefineAccessStatement
impl UnsafeUnpin for DefineAccessStatement
impl UnwindSafe for DefineAccessStatement
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,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.