church-core/src/models/v2.rs
RTSDA 4d6b23beb3
Some checks are pending
iOS UniFFI Build / build-ios (push) Waiting to run
Initial commit: Church Core Rust library
Add church management API library with cross-platform support for iOS, Android, and WASM.
Features include event management, bulletin handling, contact forms, and authentication.
2025-08-16 19:25:01 -04:00

15 lines
318 B
Rust

/// API version enum to specify which API version to use
#[derive(Debug, Clone, Copy, PartialEq, Eq)]
pub enum ApiVersion {
V1,
V2,
}
impl ApiVersion {
pub fn path_prefix(&self) -> &'static str {
match self {
ApiVersion::V1 => "",
ApiVersion::V2 => "v2/",
}
}
}