pub struct HasuraAuthConfig {
pub admin_secret: Option<String>,
pub unauthorized_role: Option<String>,
}Expand description
What this server was told about who may claim what.
Fields§
§admin_secret: Option<String>The shared secret that authenticates an administrator. Everything in this module is dark until this is set; see the divergence above.
The role a request falls to when nothing authenticated it. Hasura’s
HASURA_GRAPHQL_UNAUTHORIZED_ROLE. Unset means such a request is
refused rather than answered as a stranger.
Implementations§
Source§impl HasuraAuthConfig
impl HasuraAuthConfig
Sourcepub fn is_configured(&self) -> bool
pub fn is_configured(&self) -> bool
Whether this server gates on a secret at all.
Trait Implementations§
Source§impl Clone for HasuraAuthConfig
impl Clone for HasuraAuthConfig
Source§fn clone(&self) -> HasuraAuthConfig
fn clone(&self) -> HasuraAuthConfig
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 HasuraAuthConfig
impl Debug for HasuraAuthConfig
Source§impl Default for HasuraAuthConfig
impl Default for HasuraAuthConfig
Source§fn default() -> HasuraAuthConfig
fn default() -> HasuraAuthConfig
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for HasuraAuthConfig
impl RefUnwindSafe for HasuraAuthConfig
impl Send for HasuraAuthConfig
impl Sync for HasuraAuthConfig
impl Unpin for HasuraAuthConfig
impl UnsafeUnpin for HasuraAuthConfig
impl UnwindSafe for HasuraAuthConfig
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