bookclerk_library::entities::remote_plugin_consents
SeaORM entity for remote_plugin_consents: on a branch node, this
install's operator consent for each owner plugin a library wants
to run here (written by control_plane::remote_consents).
| Item | Kind | Summary |
|---|---|---|
Model |
struct | Row shape for one owner plugin of one 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 plugin_key: String,
pub requested_version: String,
pub requested_grant_json: String,
pub requested_artifact_url: String,
pub requested_artifact_sha256: String,
pub requested_artifact_payload_sha256: String,
pub version: Option<String>,
pub approved_request_json: Option<String>,
pub approved_artifact_url: Option<String>,
pub approved_artifact_sha256: Option<String>,
pub approved_artifact_payload_sha256: Option<String>,
pub grant_json: Option<String>,
pub approved_at: Option<String>,
pub approved_by: Option<String>,
pub revoked_at: Option<String>,
pub updated_at: String,
}
Row shape for one owner plugin of one library.
Fields
parent_library_id: Library id the plugin belongs to.plugin_key: Canonical plugin key.requested_version: Version the owner currently deploys here.requested_grant_json: The owner's approved grant (JSON) for that version.requested_artifact_url: URL of the archive the owner deploys to this host (the artifact for this host's target).requested_artifact_sha256: SHA-256 of that archive, as the owner states it.requested_artifact_payload_sha256: Payload-root digest of the tree that archive unpacks to, as the owner states it (theplugins/.versions/<digest>cache key).version: Version this install's operator approved;Noneuntil approved.approved_request_json: The owner's grant as it stood when the operator approved; a later request outside it needs approval again.approved_artifact_url: The archive URL as it stood when the operator approved; another URL needs approval again.approved_artifact_sha256: The archive SHA-256 as it stood when the operator approved.approved_artifact_payload_sha256: The payload-root digest as it stood when the operator approved.grant_json: The grant this install's operator consented to (JSON), never wider thanapproved_request_json.approved_at: RFC 3339 approval time.approved_by: Audit identity of the approver (platformfor an automatic approval of a bundled platform plugin).revoked_at: RFC 3339 time this install's operator revoked the approval; while set, no automatic approval is given (only an operator approval clears it).updated_at: RFC 3339 time of the last write.
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 plugin_key: ActiveValue<String>,
pub requested_version: ActiveValue<String>,
pub requested_grant_json: ActiveValue<String>,
pub requested_artifact_url: ActiveValue<String>,
pub requested_artifact_sha256: ActiveValue<String>,
pub requested_artifact_payload_sha256: ActiveValue<String>,
pub version: ActiveValue<Option<String>>,
pub approved_request_json: ActiveValue<Option<String>>,
pub approved_artifact_url: ActiveValue<Option<String>>,
pub approved_artifact_sha256: ActiveValue<Option<String>>,
pub approved_artifact_payload_sha256: ActiveValue<Option<String>>,
pub grant_json: ActiveValue<Option<String>>,
pub approved_at: ActiveValue<Option<String>>,
pub approved_by: ActiveValue<Option<String>>,
pub revoked_at: ActiveValue<Option<String>>,
pub updated_at: ActiveValue<String>,
}
Generated by sea-orm-macros
Fields
parent_library_id: Generated by sea-orm-macrosplugin_key: Generated by sea-orm-macrosrequested_version: Generated by sea-orm-macrosrequested_grant_json: Generated by sea-orm-macrosrequested_artifact_url: Generated by sea-orm-macrosrequested_artifact_sha256: Generated by sea-orm-macrosrequested_artifact_payload_sha256: Generated by sea-orm-macrosversion: Generated by sea-orm-macrosapproved_request_json: Generated by sea-orm-macrosapproved_artifact_url: Generated by sea-orm-macrosapproved_artifact_sha256: Generated by sea-orm-macrosapproved_artifact_payload_sha256: Generated by sea-orm-macrosgrant_json: Generated by sea-orm-macrosapproved_at: Generated by sea-orm-macrosapproved_by: Generated by sea-orm-macrosrevoked_at: Generated by sea-orm-macrosupdated_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 {
ParentLibraryId,
PluginKey,
RequestedVersion,
RequestedGrantJson,
RequestedArtifactUrl,
RequestedArtifactSha256,
RequestedArtifactPayloadSha256,
Version,
ApprovedRequestJson,
ApprovedArtifactUrl,
ApprovedArtifactSha256,
ApprovedArtifactPayloadSha256,
GrantJson,
ApprovedAt,
ApprovedBy,
RevokedAt,
UpdatedAt,
}
Generated by sea-orm-macros
Variants
ParentLibraryId: Generated by sea-orm-macrosPluginKey: Generated by sea-orm-macrosRequestedVersion: Generated by sea-orm-macrosRequestedGrantJson: Generated by sea-orm-macrosRequestedArtifactUrl: Generated by sea-orm-macrosRequestedArtifactSha256: Generated by sea-orm-macrosRequestedArtifactPayloadSha256: Generated by sea-orm-macrosVersion: Generated by sea-orm-macrosApprovedRequestJson: Generated by sea-orm-macrosApprovedArtifactUrl: Generated by sea-orm-macrosApprovedArtifactSha256: Generated by sea-orm-macrosApprovedArtifactPayloadSha256: Generated by sea-orm-macrosGrantJson: Generated by sea-orm-macrosApprovedAt: Generated by sea-orm-macrosApprovedBy: Generated by sea-orm-macrosRevokedAt: Generated by sea-orm-macrosUpdatedAt: Generated by sea-orm-macros
Implements: Clone, ColumnTrait, Copy, Debug, FromStr, Iden, IdenStatic, IntoEnumIterator
pub enum PrimaryKey {
ParentLibraryId,
PluginKey,
}
Generated by sea-orm-macros
Variants
ParentLibraryId: Generated by sea-orm-macrosPluginKey: 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