objc2_vision/generated/
VNCalculateImageAestheticsScoresRequest.rs1use core::ptr::NonNull;
4use objc2::__framework_prelude::*;
5use objc2_foundation::*;
6
7use crate::*;
8
9extern_class!(
10 #[unsafe(super(VNImageBasedRequest, VNRequest, NSObject))]
15 #[derive(Debug, PartialEq, Eq, Hash)]
16 #[cfg(feature = "VNRequest")]
17 pub struct VNCalculateImageAestheticsScoresRequest;
18);
19
20#[cfg(feature = "VNRequest")]
21extern_conformance!(
22 unsafe impl NSCopying for VNCalculateImageAestheticsScoresRequest {}
23);
24
25#[cfg(feature = "VNRequest")]
26unsafe impl CopyingHelper for VNCalculateImageAestheticsScoresRequest {
27 type Result = Self;
28}
29
30#[cfg(feature = "VNRequest")]
31extern_conformance!(
32 unsafe impl NSObjectProtocol for VNCalculateImageAestheticsScoresRequest {}
33);
34
35#[cfg(feature = "VNRequest")]
36impl VNCalculateImageAestheticsScoresRequest {
37 extern_methods!(
38 #[cfg(feature = "VNObservation")]
39 #[unsafe(method(results))]
41 #[unsafe(method_family = none)]
42 pub unsafe fn results(
43 &self,
44 ) -> Option<Retained<NSArray<VNImageAestheticsScoresObservation>>>;
45 );
46}
47
48#[cfg(feature = "VNRequest")]
50impl VNCalculateImageAestheticsScoresRequest {
51 extern_methods!(
52 #[unsafe(method(init))]
54 #[unsafe(method_family = init)]
55 pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
56
57 #[cfg(feature = "block2")]
58 #[unsafe(method(initWithCompletionHandler:))]
67 #[unsafe(method_family = init)]
68 pub unsafe fn initWithCompletionHandler(
69 this: Allocated<Self>,
70 completion_handler: VNRequestCompletionHandler,
71 ) -> Retained<Self>;
72 );
73}
74
75#[cfg(feature = "VNRequest")]
77impl VNCalculateImageAestheticsScoresRequest {
78 extern_methods!(
79 #[unsafe(method(new))]
80 #[unsafe(method_family = new)]
81 pub unsafe fn new() -> Retained<Self>;
82 );
83}
84
85pub static VNCalculateImageAestheticsScoresRequestRevision1: NSUInteger = 1;