bookclerk_library::entities::library_links
SeaORM entity for library_links: on a branch node, the libraries it
enrolled into (written by control_plane::record_library_link).
| Item | Kind | Summary |
|---|---|---|
Model |
struct | Row shape for one link from this install to a library. |
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 parent_library_id: String,
pub owner_origin: String,
pub remote_node_id: String,
pub spki_pin: Option<String>,
pub state: String,
pub enrolled_at: String,
pub share_books: i64,
pub include_branches: i64,
pub ancestry_json: String,
pub work_for_members: i64,
pub keep_member_copies: i64,
pub max_jobs: Option<i64>,
pub list_members_books: i64,
pub keep_copies: i64,
pub person_user_id: Option<i64>,
}
Row shape for one link from this install to a library.
Fields
parent_library_id: Library id returned by enrollment.owner_origin: Owner origin (https://owner.example).remote_node_id: Node id the owner minted for this install.spki_pin: SPKI pin from the enrollment link, when it carried one.state:active,revoked, orleft.enrolled_at: RFC 3339 enrollment time.share_books: "Share this branch's books with library" (1 = on, the default).include_branches: "Include books from my own branches" (1 = on, the default).ancestry_json: The owner library's ancestry (JSON list of library ids, the owner's own first), as it last reported it.work_for_members: "Download for other members of library" (0 = off, the default): the branch takes work for the library's other members too, not only its owner's.keep_member_copies: "Keep copies of other members' books" (0 = off, the default): a book acquired here for another member is also written to this install's own destinations.max_jobs: The most jobs this install runs for the library at once, set by its operator;NULLleaves it to the equal share of the machine.list_members_books: "List my members' books to library" (1 = on, the default): the branch answers that library's catalog lookups with its members' books as well as its owner's.keep_copies: "Keep copies on this computer" (1 = on, the default): the branch takes the library's copies of its person's books into its own storage. It takes the library's work either way.person_user_id: The local user who joined the library through this link (NULLwhen nobody could be named, such as a join with several Owners and no signed-in Administrator). Only this person may add their own store connections to the library or withdraw them through it.
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 parent_library_id: ActiveValue<String>,
pub owner_origin: ActiveValue<String>,
pub remote_node_id: ActiveValue<String>,
pub spki_pin: ActiveValue<Option<String>>,
pub state: ActiveValue<String>,
pub enrolled_at: ActiveValue<String>,
pub share_books: ActiveValue<i64>,
pub include_branches: ActiveValue<i64>,
pub ancestry_json: ActiveValue<String>,
pub work_for_members: ActiveValue<i64>,
pub keep_member_copies: ActiveValue<i64>,
pub max_jobs: ActiveValue<Option<i64>>,
pub list_members_books: ActiveValue<i64>,
pub keep_copies: ActiveValue<i64>,
pub person_user_id: ActiveValue<Option<i64>>,
}
Generated by sea-orm-macros
Fields
parent_library_id: Generated by sea-orm-macrosowner_origin: Generated by sea-orm-macrosremote_node_id: Generated by sea-orm-macrosspki_pin: Generated by sea-orm-macrosstate: Generated by sea-orm-macrosenrolled_at: Generated by sea-orm-macrosshare_books: Generated by sea-orm-macrosinclude_branches: Generated by sea-orm-macrosancestry_json: Generated by sea-orm-macroswork_for_members: Generated by sea-orm-macroskeep_member_copies: Generated by sea-orm-macrosmax_jobs: Generated by sea-orm-macroslist_members_books: Generated by sea-orm-macroskeep_copies: Generated by sea-orm-macrosperson_user_id: 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 {
ParentLibraryId,
OwnerOrigin,
RemoteNodeId,
SpkiPin,
State,
EnrolledAt,
ShareBooks,
IncludeBranches,
AncestryJson,
WorkForMembers,
KeepMemberCopies,
MaxJobs,
ListMembersBooks,
KeepCopies,
PersonUserId,
}
Generated by sea-orm-macros
Variants
ParentLibraryId: Generated by sea-orm-macrosOwnerOrigin: Generated by sea-orm-macrosRemoteNodeId: Generated by sea-orm-macrosSpkiPin: Generated by sea-orm-macrosState: Generated by sea-orm-macrosEnrolledAt: Generated by sea-orm-macrosShareBooks: Generated by sea-orm-macrosIncludeBranches: Generated by sea-orm-macrosAncestryJson: Generated by sea-orm-macrosWorkForMembers: Generated by sea-orm-macrosKeepMemberCopies: Generated by sea-orm-macrosMaxJobs: Generated by sea-orm-macrosListMembersBooks: Generated by sea-orm-macrosKeepCopies: Generated by sea-orm-macrosPersonUserId: Generated by sea-orm-macros
Implements: Clone, ColumnTrait, Copy, Debug, FromStr, Iden, IdenStatic, IntoEnumIterator
pub enum PrimaryKey {
ParentLibraryId,
}
Generated by sea-orm-macros
Variants
ParentLibraryId: 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