README

Duan-lang-dev/moonecoguard/privacy does not have a README file

#
CoordinateMode

pub(all) enum CoordinateMode {
RoundDecimals(decimals~ : Int)
Grid(size_km~ : Double)
Jitter(radius_km~ : Double)
RegionCenter(latitude~ : Double, longitude~ : Double)
RemoveCoordinates
} derive(Eq,
Debug
)

#
DatasetDiff

pub(all) struct DatasetDiff {
private_record_count : Int
public_record_count : Int
matched_count : Int
added_count : Int
removed_count : Int
coordinate_changed_count : Int
coordinate_removed_count : Int
observer_contact_changed_count : Int
remarks_changed_count : Int
} derive(Eq,
Debug
)

#
Policy

pub(all) struct Policy {
sensitive_taxa : Array[String]
coordinate_mode : CoordinateMode
remove_observer_contact : Bool
remove_verbatim_coordinates : Bool
redact_private_remarks : Bool
} derive(Eq,
Debug
)

#
ProtectionResult

#
ProtectionSummary

pub(all) struct ProtectionSummary {
record_count : Int
sensitive_record_count : Int
coordinate_changed_count : Int
coordinate_removed_count : Int
observer_contact_removed_count : Int
remarks_redacted_count : Int
} derive(Eq,
Debug
)

#
default_policy

fn default_policy() -> Policy

#
grid_policy

fn grid_policy(taxa : Array[String], size_km : Double) -> Policy

#
policy_from_json

fn policy_from_json(source : String) -> Policy

Minimal policy JSON reader for the documented sample config.

#
protect_with_summary

fn protect_with_summary(dataset :
Dataset
, policy : Policy) -> ProtectionResult

Source Files

Powered by MoonBit

Site sourceReport issuePackagesBuild queueSkillsStatistics

© 2026 mooncakes.io