objc2_game_kit/generated/
GKReleaseState.rs

1//! This file has been automatically generated by `objc2`'s `header-translator`.
2//! DO NOT EDIT
3use objc2::__framework_prelude::*;
4
5use crate::*;
6
7/// Describes the release state of an App Store Connect resource, such as an Achievement or Leaderboard.
8///
9/// See also [Apple's documentation](https://developer.apple.com/documentation/gamekit/gkreleasestate?language=objc)
10// NS_OPTIONS
11#[repr(transparent)]
12#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord)]
13pub struct GKReleaseState(pub NSUInteger);
14bitflags::bitflags! {
15    impl GKReleaseState: NSUInteger {
16/// The system can't determine the release state of the resource.
17        #[doc(alias = "GKReleaseStateUnknown")]
18        const Unknown = 0;
19/// The resource is associated with a release in App Store Connect. This has no relationship with the "archived" state of a resource (i.e., A resource can be release _and_ archived).
20        #[doc(alias = "GKReleaseStateReleased")]
21        const Released = 1;
22/// The resource has been created in App Store Connect but isn't yet associated with a released version of an App.
23        #[doc(alias = "GKReleaseStatePrereleased")]
24        const Prereleased = 2;
25    }
26}
27
28unsafe impl Encode for GKReleaseState {
29    const ENCODING: Encoding = NSUInteger::ENCODING;
30}
31
32unsafe impl RefEncode for GKReleaseState {
33    const ENCODING_REF: Encoding = Encoding::Pointer(&Self::ENCODING);
34}