//! This file has been automatically generated by `objc2`'s `header-translator`.
//! DO NOT EDIT
use objc2::__framework_prelude::*;
use crate::*;
/// Describes the release state of an App Store Connect resource, such as an Achievement or Leaderboard.
///
/// See also [Apple's documentation](https://developer.apple.com/documentation/gamekit/gkreleasestate?language=objc)
// NS_OPTIONS
#[repr(transparent)]
#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord)]
pub struct GKReleaseState(pub NSUInteger);
bitflags::bitflags! {
impl GKReleaseState: NSUInteger {
/// The system can't determine the release state of the resource.
#[doc(alias = "GKReleaseStateUnknown")]
const Unknown = 0;
/// 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).
#[doc(alias = "GKReleaseStateReleased")]
const Released = 1;
/// The resource has been created in App Store Connect but isn't yet associated with a released version of an App.
#[doc(alias = "GKReleaseStatePrereleased")]
const Prereleased = 2;
}
}
unsafe impl Encode for GKReleaseState {
const ENCODING: Encoding = NSUInteger::ENCODING;
}
unsafe impl RefEncode for GKReleaseState {
const ENCODING_REF: Encoding = Encoding::Pointer(&Self::ENCODING);
}