objc2_cloud_kit/generated/
CKAsset.rs

1//! This file has been automatically generated by `objc2`'s `header-translator`.
2//! DO NOT EDIT
3use core::ptr::NonNull;
4use objc2::__framework_prelude::*;
5use objc2_foundation::*;
6
7use crate::*;
8
9extern_class!(
10    /// [Apple's documentation](https://developer.apple.com/documentation/cloudkit/ckasset?language=objc)
11    #[unsafe(super(NSObject))]
12    #[derive(Debug, PartialEq, Eq, Hash)]
13    pub struct CKAsset;
14);
15
16extern_conformance!(
17    unsafe impl NSObjectProtocol for CKAsset {}
18);
19
20impl CKAsset {
21    extern_methods!(
22        #[unsafe(method(init))]
23        #[unsafe(method_family = init)]
24        pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
25
26        #[unsafe(method(new))]
27        #[unsafe(method_family = new)]
28        pub unsafe fn new() -> Retained<Self>;
29
30        /// Initialize an asset to be saved with the content at the given file URL
31        #[unsafe(method(initWithFileURL:))]
32        #[unsafe(method_family = init)]
33        pub unsafe fn initWithFileURL(this: Allocated<Self>, file_url: &NSURL) -> Retained<Self>;
34
35        /// Local file URL where fetched records are cached and saved records originate from.
36        #[unsafe(method(fileURL))]
37        #[unsafe(method_family = none)]
38        pub unsafe fn fileURL(&self) -> Option<Retained<NSURL>>;
39    );
40}