@@ -363,20 +363,27 @@ pub enum Token {
363
363
#[ cfg( any( feature = "OSX_10_12" , target_os = "ios" , target_os = "tvos" , target_os = "watchos" , target_os = "visionos" ) ) ]
364
364
pub struct GenerateKeyOptions {
365
365
/// kSecAttrKeyType
366
+ #[ deprecated( note = "use set_key_type()" ) ]
366
367
pub key_type : Option < KeyType > ,
367
368
/// kSecAttrKeySizeInBits
369
+ #[ deprecated( note = "use set_size_in_bits()" ) ]
368
370
pub size_in_bits : Option < u32 > ,
369
371
/// kSecAttrLabel
372
+ #[ deprecated( note = "use set_label()" ) ]
370
373
pub label : Option < String > ,
371
374
/// kSecAttrTokenID
375
+ #[ deprecated( note = "use set_token()" ) ]
372
376
pub token : Option < Token > ,
373
377
/// Which keychain to store the key in, if any.
378
+ #[ deprecated( note = "use set_location()" ) ]
374
379
pub location : Option < Location > ,
375
380
/// Access control
381
+ #[ deprecated( note = "use set_access_control()" ) ]
376
382
pub access_control : Option < SecAccessControl > ,
377
383
}
378
384
379
385
#[ cfg( any( feature = "OSX_10_12" , target_os = "ios" , target_os = "tvos" , target_os = "watchos" , target_os = "visionos" ) ) ]
386
+ #[ allow( deprecated) ]
380
387
impl GenerateKeyOptions {
381
388
/// Set `key_type`
382
389
pub fn set_key_type ( & mut self , key_type : KeyType ) -> & mut Self {
0 commit comments