bookclerk_library::entities::pending_joins

Development These docs follow the development version and change with every merge.

Last updated View as Markdown

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).

Structs

Model

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_token of the OAuth state; 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 id GET /api/node/v1/info reported.
  • 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.

Model::into_ex

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>

ColumnIter

pub struct ColumnIter {
    /* private fields */
}

An iterator over the variants of Column

Implements: Clone, Debug, DoubleEndedIterator, ExactSizeIterator, FusedIterator, Iterator

Entity

pub struct Entity;

Generated by sea-orm-macros

Implements: Clone, Copy, Debug, Default, EntityName, EntityTrait, Iden, IdenStatic

PrimaryKeyIter

pub struct PrimaryKeyIter {
    /* private fields */
}

An iterator over the variants of PrimaryKey

Implements: Clone, Debug, DoubleEndedIterator, ExactSizeIterator, FusedIterator, Iterator

ActiveModel

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-macros
  • owner_origin: Generated by sea-orm-macros
  • spki_pin: Generated by sea-orm-macros
  • parent_library_id: Generated by sea-orm-macros
  • library_name: Generated by sea-orm-macros
  • branch_name: Generated by sea-orm-macros
  • redirect_uri: Generated by sea-orm-macros
  • allow_shared_branch: Generated by sea-orm-macros
  • created_at: Generated by sea-orm-macros
  • expires_at: Generated by sea-orm-macros

Implements: ActiveModelBehavior, ActiveModelTrait, Clone, Debug, Default, From<Model>, IntoActiveModel<ActiveModel>, PartialEq, TryFrom<ActiveModel>, TryIntoModel<Model>

RelationIter

pub struct RelationIter {
    /* private fields */
}

An iterator over the variants of Relation

Implements: Clone, Debug, DoubleEndedIterator, ExactSizeIterator, FusedIterator, Iterator

Enums

Column

pub enum Column {
    StateHash,
    OwnerOrigin,
    SpkiPin,
    ParentLibraryId,
    LibraryName,
    BranchName,
    RedirectUri,
    AllowSharedBranch,
    CreatedAt,
    ExpiresAt,
}

Generated by sea-orm-macros

Variants

  • StateHash: Generated by sea-orm-macros
  • OwnerOrigin: Generated by sea-orm-macros
  • SpkiPin: Generated by sea-orm-macros
  • ParentLibraryId: Generated by sea-orm-macros
  • LibraryName: Generated by sea-orm-macros
  • BranchName: Generated by sea-orm-macros
  • RedirectUri: Generated by sea-orm-macros
  • AllowSharedBranch: Generated by sea-orm-macros
  • CreatedAt: Generated by sea-orm-macros
  • ExpiresAt: Generated by sea-orm-macros

Implements: Clone, ColumnTrait, Copy, Debug, FromStr, Iden, IdenStatic, IntoEnumIterator

PrimaryKey

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

Relation

pub enum Relation {}

Declared SeaORM relations (none).

Implements: Clone, Copy, Debug, IntoEnumIterator, RelationTrait

Generated from crates/bookclerk-library at main · View as Markdown