bookclerk_library::entities::pending_joins
SeaORM entity for pending_joins: on a host joining a library, one
sign-in in progress (written by control_plane::create_pending_join).
The PKCE verifier and the node keys are sealed in encrypted_secrets,
never stored here.
| Item | Kind | Summary |
|---|---|---|
Model |
struct | Row shape for one pending join. |
ColumnIter |
struct | An iterator over the variants of [Column] |
Entity |
struct | Generated by sea-orm-macros |
PrimaryKeyIter |
struct | An iterator over the variants of [PrimaryKey] |
ActiveModel |
struct | Generated by sea-orm-macros |
RelationIter |
struct | An iterator over the variants of [Relation] |
Column |
enum | Generated by sea-orm-macros |
PrimaryKey |
enum | Generated by sea-orm-macros |
Relation |
enum | Declared SeaORM relations (none). |
pub struct Model {
pub state_hash: String,
pub owner_origin: String,
pub spki_pin: Option<String>,
pub parent_library_id: String,
pub library_name: String,
pub branch_name: String,
pub redirect_uri: String,
pub allow_shared_branch: i64,
pub created_at: String,
pub expires_at: String,
}
Row shape for one pending join.
Fields
state_hash:hash_tokenof the OAuthstate; the state itself is not stored.owner_origin: Owner origin (https://owner.example), canonical.spki_pin: SPKI pin the operator confirmed (self-signed owners).parent_library_id: Library idGET /api/node/v1/inforeported.library_name: Library name the owner reported.branch_name: Name this install asks to join as.redirect_uri: Redirect URI the authorization was requested with.allow_shared_branch: 1 when the operator offered to join as a shared branch.created_at: RFC 3339 creation time.expires_at: RFC 3339 time after which the row is refused and purged.
pub fn into_ex(self) -> Self
Generated by sea-orm-macros
Implements: Clone, Debug, Eq, From<Model>, FromQueryResult, IntoActiveModel<ActiveModel>, ModelTrait, PartialEq, TryFrom<ActiveModel>, TryIntoModel<Model>
pub struct ColumnIter {
/* private fields */
}
An iterator over the variants of Column
Implements: Clone, Debug, DoubleEndedIterator, ExactSizeIterator, FusedIterator, Iterator
pub struct Entity;
Generated by sea-orm-macros
Implements: Clone, Copy, Debug, Default, EntityName, EntityTrait, Iden, IdenStatic
pub struct PrimaryKeyIter {
/* private fields */
}
An iterator over the variants of PrimaryKey
Implements: Clone, Debug, DoubleEndedIterator, ExactSizeIterator, FusedIterator, Iterator
pub struct ActiveModel {
pub state_hash: ActiveValue<String>,
pub owner_origin: ActiveValue<String>,
pub spki_pin: ActiveValue<Option<String>>,
pub parent_library_id: ActiveValue<String>,
pub library_name: ActiveValue<String>,
pub branch_name: ActiveValue<String>,
pub redirect_uri: ActiveValue<String>,
pub allow_shared_branch: ActiveValue<i64>,
pub created_at: ActiveValue<String>,
pub expires_at: ActiveValue<String>,
}
Generated by sea-orm-macros
Fields
state_hash: Generated by sea-orm-macrosowner_origin: Generated by sea-orm-macrosspki_pin: Generated by sea-orm-macrosparent_library_id: Generated by sea-orm-macroslibrary_name: Generated by sea-orm-macrosbranch_name: Generated by sea-orm-macrosredirect_uri: Generated by sea-orm-macrosallow_shared_branch: Generated by sea-orm-macroscreated_at: Generated by sea-orm-macrosexpires_at: Generated by sea-orm-macros
Implements: ActiveModelBehavior, ActiveModelTrait, Clone, Debug, Default, From<Model>, IntoActiveModel<ActiveModel>, PartialEq, TryFrom<ActiveModel>, TryIntoModel<Model>
pub struct RelationIter {
/* private fields */
}
An iterator over the variants of Relation
Implements: Clone, Debug, DoubleEndedIterator, ExactSizeIterator, FusedIterator, Iterator
pub enum Column {
StateHash,
OwnerOrigin,
SpkiPin,
ParentLibraryId,
LibraryName,
BranchName,
RedirectUri,
AllowSharedBranch,
CreatedAt,
ExpiresAt,
}
Generated by sea-orm-macros
Variants
StateHash: Generated by sea-orm-macrosOwnerOrigin: Generated by sea-orm-macrosSpkiPin: Generated by sea-orm-macrosParentLibraryId: Generated by sea-orm-macrosLibraryName: Generated by sea-orm-macrosBranchName: Generated by sea-orm-macrosRedirectUri: Generated by sea-orm-macrosAllowSharedBranch: Generated by sea-orm-macrosCreatedAt: Generated by sea-orm-macrosExpiresAt: Generated by sea-orm-macros
Implements: Clone, ColumnTrait, Copy, Debug, FromStr, Iden, IdenStatic, IntoEnumIterator
pub enum PrimaryKey {
StateHash,
}
Generated by sea-orm-macros
Variants
StateHash: Generated by sea-orm-macros
Implements: Clone, Copy, Debug, Iden, IdenStatic, IntoEnumIterator, PrimaryKeyToColumn, PrimaryKeyTrait
pub enum Relation {}
Declared SeaORM relations (none).
Implements: Clone, Copy, Debug, IntoEnumIterator, RelationTrait
Generated from crates/bookclerk-library at main · View as Markdown