pub struct Cedarling { /* private fields */ }
Expand description
The instance of the Cedarling application. It is safe to share between threads.
Implementations§
source§impl Cedarling
impl Cedarling
sourcepub async fn new_with_env(
raw_config: Option<BootstrapConfigRaw>,
) -> Result<Cedarling, InitCedarlingError>
pub async fn new_with_env( raw_config: Option<BootstrapConfigRaw>, ) -> Result<Cedarling, InitCedarlingError>
Create a new instance of the Cedarling application. Initialize instance from enviroment variables and from config. Configuration structure has lower priority.
sourcepub async fn new(
config: &BootstrapConfig,
) -> Result<Cedarling, InitCedarlingError>
pub async fn new( config: &BootstrapConfig, ) -> Result<Cedarling, InitCedarlingError>
Create a new instance of the Cedarling application.
Authorize request
makes authorization decision based on the Request
Authorize request with unsigned data.
makes authorization decision based on the [RequestUnverified
]
Trait Implementations§
source§impl LogStorage for Cedarling
impl LogStorage for Cedarling
source§fn get_log_ids(&self) -> Vec<String>
fn get_log_ids(&self) -> Vec<String>
Returns a list of all log ids
source§fn get_logs_by_tag(&self, tag: &str) -> Vec<Value>
fn get_logs_by_tag(&self, tag: &str) -> Vec<Value>
Get logs by tag, like
log_kind
or log level
.
Tag can be log_kind
, log_level
.Auto Trait Implementations§
impl Freeze for Cedarling
impl !RefUnwindSafe for Cedarling
impl Send for Cedarling
impl Sync for Cedarling
impl Unpin for Cedarling
impl !UnwindSafe for Cedarling
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§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)§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