icrate 0.0.1

Bindings to Apple's frameworks
Documentation
//! This file has been automatically generated by `objc2`'s `header-translator`.
//! DO NOT EDIT
use crate::common::*;
use crate::CoreData::*;
use crate::Foundation::*;

ns_enum!(
    #[underlying(NSUInteger)]
    pub enum NSPersistentStoreRequestType {
        NSFetchRequestType = 1,
        NSSaveRequestType = 2,
        NSBatchInsertRequestType = 5,
        NSBatchUpdateRequestType = 6,
        NSBatchDeleteRequestType = 7,
    }
);

extern_class!(
    #[derive(Debug, PartialEq, Eq, Hash)]
    pub struct NSPersistentStoreRequest;

    unsafe impl ClassType for NSPersistentStoreRequest {
        type Super = NSObject;
    }
);

extern_methods!(
    unsafe impl NSPersistentStoreRequest {
        #[method_id(@__retain_semantics Other affectedStores)]
        pub unsafe fn affectedStores(&self) -> Option<Id<NSArray<NSPersistentStore>, Shared>>;

        #[method(setAffectedStores:)]
        pub unsafe fn setAffectedStores(&self, affectedStores: Option<&NSArray<NSPersistentStore>>);

        #[method(requestType)]
        pub unsafe fn requestType(&self) -> NSPersistentStoreRequestType;
    }
);