domain tier

domain-travel-compliance

Travel compliance: health certificates, screening exams, import/export requirements

Travel compliance: health certificates, screening exams, import/export requirements

Tierdomain
Roleunclassified (baselined)
Pathcrates/domain/travel-compliance
Edition2021
Targetsdomain_travel_compliance
Public items38 across 0 modules
Tests36

What it is for

This crate does not document itself. No //! block on its entry point. The facts below are complete; the reason this crate exists is not written down anywhere, and belongs in src/lib.rs rather than here.

Capabilities

CertificateSequence

_No module-level documentation is present in the source._

Item
pub struct CertificateSequence
CertificateSequence :: fn new(prefix : & str, year : u16) -> Self
CertificateSequence :: fn generate_number(& mut self) -> String

CertificateStatus

_No module-level documentation is present in the source._

Item
pub enum CertificateStatus

CertificateType

_No module-level documentation is present in the source._

Item
pub enum CertificateType

FindingSeverity

_No module-level documentation is present in the source._

Item
pub enum FindingSeverity

HealthCertificate

_No module-level documentation is present in the source._

Item
pub struct HealthCertificate
HealthCertificate :: fn is_expired(& self) -> bool
HealthCertificate :: fn is_valid(& self) -> bool
HealthCertificate :: fn transition_to(& mut self, new_status : CertificateStatus,) -> Result <(), TravelComplianceError>
HealthCertificate :: fn revoke(& mut self, reason : & str) -> Result <(), TravelComplianceError>
HealthCertificate :: fn id(& self) -> Uuid
HealthCertificate :: fn created_at(& self) -> DateTime <Utc>
HealthCertificate :: fn updated_at(& self) -> DateTime <Utc>
HealthCertificate :: fn deleted_at(& self) -> Option <DateTime <Utc>>

InspectionSite

_No module-level documentation is present in the source._

Item
pub enum InspectionSite

RequirementType

_No module-level documentation is present in the source._

Item
pub enum RequirementType

RiskLevel

_No module-level documentation is present in the source._

Item
pub enum RiskLevel

ScreeningExam

_No module-level documentation is present in the source._

Item
pub struct ScreeningExam
ScreeningExam :: fn transition_to(& mut self, new_status : ScreeningStatus,) -> Result <(), TravelComplianceError>
ScreeningExam :: fn record_review(& mut self, vet_id : Uuid, override_score : Option <u8>)
ScreeningExam :: fn effective_score(& self) -> Option <u8>
ScreeningExam :: fn has_critical_findings(& self) -> bool
ScreeningExam :: fn id(& self) -> Uuid
ScreeningExam :: fn created_at(& self) -> DateTime <Utc>
ScreeningExam :: fn updated_at(& self) -> DateTime <Utc>
ScreeningExam :: fn deleted_at(& self) -> Option <DateTime <Utc>>

ScreeningFinding

_No module-level documentation is present in the source._

Item
pub struct ScreeningFinding
ScreeningFinding :: fn id(& self) -> Uuid

ScreeningStatus

_No module-level documentation is present in the source._

Item
pub enum ScreeningStatus

ScreeningType

_No module-level documentation is present in the source._

Item
pub enum ScreeningType

TravelComplianceError

_No module-level documentation is present in the source._

Item
pub enum TravelComplianceError

TravelPurpose

_No module-level documentation is present in the source._

Item
pub enum TravelPurpose

TravelRequirement

_No module-level documentation is present in the source._

Item
pub struct TravelRequirement
TravelRequirement :: fn id(& self) -> Uuid
TravelRequirement :: fn created_at(& self) -> DateTime <Utc>
TravelRequirement :: fn updated_at(& self) -> DateTime <Utc>
TravelRequirement :: fn deleted_at(& self) -> Option <DateTime <Utc>>

How to use it

No examples/ target and no doctest in this crate's rustdoc. The tests listed under Verification are the closest executable usage.

Module structure

No public modules: the crate root is its whole surface.

Public surface

`crate root`

ItemWhat it is
pub enum InspectionSiteBody area to inspect during screening (screwworm predilection sites).
pub enum RiskLevelRisk level from a screening.
pub enum ScreeningTypeType of screening examination.
pub enum ScreeningStatusStatus of a screening examination.
pub enum FindingSeveritySeverity of a finding during screening.
pub enum CertificateTypeType of health certificate.
pub enum TravelPurposePurpose of travel.
pub enum CertificateStatusStatus of a health certificate.
pub enum RequirementTypeType of import/export requirement.
pub enum TravelComplianceErrorError types for travel compliance operations.
pub struct ScreeningFindingA finding from a screening examination.
ScreeningFinding :: fn id(& self) -> Uuid
pub struct ScreeningExamA screening examination (screwworm, tick, etc).
ScreeningExam :: fn transition_to(& mut self, new_status : ScreeningStatus,) -> Result <(), TravelComplianceError>Transition the screening to a new status (state machine)
ScreeningExam :: fn record_review(& mut self, vet_id : Uuid, override_score : Option <u8>)Record a vet review with optional score override.
ScreeningExam :: fn effective_score(& self) -> Option <u8>Get the effective score (vet override takes precedence over AI).
ScreeningExam :: fn has_critical_findings(& self) -> boolCheck if the screening has any high or critical findings.
ScreeningExam :: fn id(& self) -> Uuid
ScreeningExam :: fn created_at(& self) -> DateTime <Utc>
ScreeningExam :: fn updated_at(& self) -> DateTime <Utc>
ScreeningExam :: fn deleted_at(& self) -> Option <DateTime <Utc>>
pub struct HealthCertificateHealth certificate for travel.
HealthCertificate :: fn is_expired(& self) -> boolCheck if the certificate has expired.
HealthCertificate :: fn is_valid(& self) -> boolCheck if the certificate is currently valid.
HealthCertificate :: fn transition_to(& mut self, new_status : CertificateStatus,) -> Result <(), TravelComplianceError>Transition the certificate to a new status (state machine)
HealthCertificate :: fn revoke(& mut self, reason : & str) -> Result <(), TravelComplianceError>Revoke the certificate with a reason
HealthCertificate :: fn id(& self) -> Uuid
HealthCertificate :: fn created_at(& self) -> DateTime <Utc>
HealthCertificate :: fn updated_at(& self) -> DateTime <Utc>
HealthCertificate :: fn deleted_at(& self) -> Option <DateTime <Utc>>
pub struct TravelRequirementImport/export requirement for a country pair.
TravelRequirement :: fn id(& self) -> Uuid
TravelRequirement :: fn created_at(& self) -> DateTime <Utc>
TravelRequirement :: fn updated_at(& self) -> DateTime <Utc>
TravelRequirement :: fn deleted_at(& self) -> Option <DateTime <Utc>>
pub struct CertificateSequenceCertificate number sequence generator.
CertificateSequence :: fn new(prefix : & str, year : u16) -> SelfCreate a new sequence with the given prefix and year.
CertificateSequence :: fn generate_number(& mut self) -> StringGenerate the next certificate number.

No pub use re-exports: every item above is declared in this crate.

Boundary

Reaches into foundation, identity.

Shares tier domain with 41 other crates: domain-agreements, domain-ai-report, domain-billing, domain-catalog, domain-classify, domain-comments, domain-competitive-intel, domain-contact, … (41 total).

_What this crate deliberately does NOT own is a judgment. No committed registry records one for it, so none is stated here._

Where it sits

Tier (ontology)domain
Architectural role (taxonomy)unclassified (baselined)
Locationcrates/domain/travel-compliance
Vocabulary in force (lexicon)current

Tier flow. Which tiers this crate's own edges cross.

flowchart LR
  n_domain["domain"] --> n_foundation["foundation"]
  n_domain["domain"] --> n_identity["identity"]

Dependencies

Runtime, in this workspace.

CrateTierOptionalOnly on
`foundation-basemodels`foundationnoalways
`identity-parties`identitynoalways

Runtime, from outside the workspace.

CrateRequirementFeaturesOptionalOnly on
chrono^0.4serdenoalways
serde^1derivenoalways
serde_json^1noalways
thiserror^2noalways
uuid^1v4, v7, serde, jsnoalways

Development, from outside the workspace.

CrateRequirementFeaturesOptionalOnly on
tokio-test^0.4noalways

Build. None.

Depended on by. 1 workspace crate.

Signal flow — what reaches this crate, and what it reaches.

flowchart LR
  n_application_travel_compliance["application-travel-compliance"] -->|uses| SELF
  SELF["domain-travel-compliance"]
  SELF -->|runtime| n_foundation_basemodels["foundation-basemodels"]
  SELF -->|runtime| n_identity_parties["identity-parties"]
  classDef self fill:#1f883d,stroke:#1f883d,color:#fff;
  class SELF self;

Feature flags

No Cargo features are defined: every capability is unconditional, so no consumer can receive a half-wired crate.

Targets

KindNameSource
libdomain_travel_compliance`src/lib.rs`

Error model

Error typeNamed by
TravelComplianceErrordeclared, no public signature returns it

Operational characteristics

PropertyEvidence
async public surfacenone detected
async runtimenone detected
database accessnone detected
network I/Onone detected
unsafe codenone detected
environment variablesnone detected

No unsafe block, unsafe fn, unsafe impl or unsafe trait was found by the parser anywhere in this crate's source.

Configuration

No environment variable is read with a literal name anywhere in this crate. A variable whose key is computed at run time cannot be listed here, and is not claimed to be absent.

1 workspace crate depends on this one: application-travel-compliance.

Verification

KindCount
Unit tests36
Integration tests0
Examples0
Doctests0

Evidence by module. How often each public module is named by something executable.

ModuleTestsExamplesConsumers
crate root1501

What the tests establish, by name:

Documentation coverage

MeasureDocumentedTotal
Public items with rustdoc2538
Public modules with a //! block00
pie showData
    title Public items with rustdoc
    "Documented" : 25
    "No rustdoc detected" : 13

Metrics

MetricValue
Rust source files1
Source lines914
Code lines767
Public API items38
Public modules0
Tests36
Examples0
Cargo features0
Direct runtime dependencies7
Workspace reverse dependencies1
pie showData
    title Public API by kind
    "enum" : 10
    "method" : 23
    "struct" : 5
pie showData
    title Rust source composition
    "Code" : 767
    "Blank or comment" : 147

Generation

Rendered by tools-corpus corpus readme from repository evidence alone, renderer schema 2, lexicon current. No model, network service or database was consulted. Regenerate with tools-corpus corpus readme --write; verify with --check.

All domain · Manual