# 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`](#model) | struct | Row shape for one pending join. |
| [`ColumnIter`](#columniter) | struct | An iterator over the variants of [Column] |
| [`Entity`](#entity) | struct | Generated by sea-orm-macros |
| [`PrimaryKeyIter`](#primarykeyiter) | struct | An iterator over the variants of [PrimaryKey] |
| [`ActiveModel`](#activemodel) | struct | Generated by sea-orm-macros |
| [`RelationIter`](#relationiter) | struct | An iterator over the variants of [Relation] |
| [`Column`](#column) | enum | Generated by sea-orm-macros |
| [`PrimaryKey`](#primarykey) | enum | Generated by sea-orm-macros |
| [`Relation`](#relation) | enum | Declared SeaORM relations (none). |

## Structs

### Model

```rust
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

```rust
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

```rust
pub struct ColumnIter {
    /* private fields */
}
```

An iterator over the variants of [Column](#column)

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

### Entity

```rust
pub struct Entity;
```

Generated by sea-orm-macros

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

### PrimaryKeyIter

```rust
pub struct PrimaryKeyIter {
    /* private fields */
}
```

An iterator over the variants of [PrimaryKey](#primarykey)

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

### ActiveModel

```rust
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

```rust
pub struct RelationIter {
    /* private fields */
}
```

An iterator over the variants of [Relation](#relation)

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

## Enums

### Column

```rust
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

```rust
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

```rust
pub enum Relation {}
```

Declared SeaORM relations (none).

Implements: `Clone`, `Copy`, `Debug`, `IntoEnumIterator`, `RelationTrait`
