
Some checks are pending
iOS UniFFI Build / build-ios (push) Waiting to run
Add church management API library with cross-platform support for iOS, Android, and WASM. Features include event management, bulletin handling, contact forms, and authentication.
15 lines
318 B
Rust
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/",
|
|
}
|
|
}
|
|
} |