Skip to main content

Module plugin_prelude

Module plugin_prelude 

Source
Expand description

Everything a plugin author needs.

Re-exports§

pub use crate::adapter::Adapter;
pub use crate::adapter::Order;
pub use crate::crypto::Hash;
pub use crate::crypto::random_string;
pub use crate::crypto::random_token;
pub use crate::endpoint::After;
pub use crate::endpoint::Authenticated;
pub use crate::endpoint::Before;
pub use crate::endpoint::Ctx;
pub use crate::endpoint::Empty;
pub use crate::endpoint::Endpoint;
pub use crate::endpoint::Fresh;
pub use crate::endpoint::Gate;
pub use crate::endpoint::HookCtx;
pub use crate::endpoint::MaybeAuthenticated;
pub use crate::endpoint::Public;
pub use crate::endpoint::Resolved;
pub use crate::endpoint::SessionResolver;
pub use crate::endpoint::SessionUse;
pub use crate::endpoint::SignInAttempt;
pub use crate::error::AuthError;
pub use crate::error::ErrorCodes;
pub use crate::error::codes;
pub use crate::events::Event;
pub use crate::internal::NewAccount;
pub use crate::internal::NewUser;
pub use crate::internal::SignInResult;
pub use crate::model::Col;
pub use crate::model::Fields;
pub use crate::model::Model;
pub use crate::model::OnTable;
pub use crate::models::Account;
pub use crate::models::Session;
pub use crate::models::User;
pub use crate::models::Verification;
pub use crate::plugin::Plugin;
pub use crate::plugin::PluginBuilder;
pub use crate::query::Where;
pub use crate::rate_limit::Limit;
pub use crate::schema::ColumnDef;
pub use crate::schema::ColumnType;
pub use crate::schema::DefaultValue;
pub use crate::schema::OnDelete;
pub use crate::schema::SchemaBuilder;
pub use crate::session::SessionView;
pub use crate::session::UserView;
pub use crate::value::ColumnValue;
pub use crate::value::DecodeError;
pub use crate::value::Id;
pub use crate::value::Json;
pub use crate::value::Row;
pub use crate::value::Value;
pub use crate::AuthInstance;
pub use crate::HasPlugin;

Structs§

Arc
A thread-safe reference-counting pointer. ‘Arc’ stands for ‘Atomically Reference Counted’.
HeaderMap
A specialized multimap for header names and values.
Method
The Request Method (VERB)
OffsetDateTime
A PlainDateTime with a UtcOffset.
StatusCode
An HTTP status code (status-code in RFC 9110 et al.).

Traits§

Deserialize
A data structure that can be deserialized from any data format supported by Serde.
Serialize
A data structure that can be serialized into any data format supported by Serde.

Type Aliases§

Duration
A SignedDuration under its original name.

Derive Macros§

Deserialize
Derive macro available if serde is built with features = ["derive"].
Serialize
Derive macro available if serde is built with features = ["derive"].