@@ -531,7 +531,7 @@ pub enum AuthMethod {
531531 /// payload when storing, replaying, proxying, or forwarding initialization
532532 /// data, and otherwise ignore the method or display it generically.
533533 #[ serde( untagged) ]
534- Unknown ( UnknownAuthMethod ) ,
534+ Other ( OtherAuthMethod ) ,
535535 /// Agent handles authentication itself.
536536 ///
537537 /// This is the default when no `type` is specified.
@@ -545,7 +545,7 @@ impl AuthMethod {
545545 pub fn id ( & self ) -> & AuthMethodId {
546546 match self {
547547 Self :: Agent ( a) => & a. id ,
548- Self :: Unknown ( a) => & a. id ,
548+ Self :: Other ( a) => & a. id ,
549549 #[ cfg( feature = "unstable_auth_methods" ) ]
550550 Self :: EnvVar ( e) => & e. id ,
551551 #[ cfg( feature = "unstable_auth_methods" ) ]
@@ -558,7 +558,7 @@ impl AuthMethod {
558558 pub fn name ( & self ) -> & str {
559559 match self {
560560 Self :: Agent ( a) => & a. name ,
561- Self :: Unknown ( a) => & a. name ,
561+ Self :: Other ( a) => & a. name ,
562562 #[ cfg( feature = "unstable_auth_methods" ) ]
563563 Self :: EnvVar ( e) => & e. name ,
564564 #[ cfg( feature = "unstable_auth_methods" ) ]
@@ -571,7 +571,7 @@ impl AuthMethod {
571571 pub fn description ( & self ) -> Option < & str > {
572572 match self {
573573 Self :: Agent ( a) => a. description . as_deref ( ) ,
574- Self :: Unknown ( a) => a. description . as_deref ( ) ,
574+ Self :: Other ( a) => a. description . as_deref ( ) ,
575575 #[ cfg( feature = "unstable_auth_methods" ) ]
576576 Self :: EnvVar ( e) => e. description . as_deref ( ) ,
577577 #[ cfg( feature = "unstable_auth_methods" ) ]
@@ -588,7 +588,7 @@ impl AuthMethod {
588588 pub fn meta ( & self ) -> Option < & Meta > {
589589 match self {
590590 Self :: Agent ( a) => a. meta . as_ref ( ) ,
591- Self :: Unknown ( a) => a. meta . as_ref ( ) ,
591+ Self :: Other ( a) => a. meta . as_ref ( ) ,
592592 #[ cfg( feature = "unstable_auth_methods" ) ]
593593 Self :: EnvVar ( e) => e. meta . as_ref ( ) ,
594594 #[ cfg( feature = "unstable_auth_methods" ) ]
@@ -601,10 +601,10 @@ impl AuthMethod {
601601#[ skip_serializing_none]
602602#[ derive( Debug , Clone , Serialize , JsonSchema , PartialEq , Eq ) ]
603603#[ schemars( inline) ]
604- #[ schemars( transform = unknown_auth_method_schema ) ]
604+ #[ schemars( transform = other_auth_method_schema ) ]
605605#[ serde( rename_all = "camelCase" ) ]
606606#[ non_exhaustive]
607- pub struct UnknownAuthMethod {
607+ pub struct OtherAuthMethod {
608608 /// Custom or future authentication method type.
609609 ///
610610 /// Values beginning with `_` are reserved for implementation-specific
@@ -630,7 +630,7 @@ pub struct UnknownAuthMethod {
630630 pub fields : BTreeMap < String , serde_json:: Value > ,
631631}
632632
633- impl UnknownAuthMethod {
633+ impl OtherAuthMethod {
634634 #[ must_use]
635635 pub fn new (
636636 type_ : impl Into < String > ,
@@ -672,14 +672,14 @@ impl UnknownAuthMethod {
672672 }
673673}
674674
675- impl < ' de > Deserialize < ' de > for UnknownAuthMethod {
675+ impl < ' de > Deserialize < ' de > for OtherAuthMethod {
676676 fn deserialize < D > ( deserializer : D ) -> Result < Self , D :: Error >
677677 where
678678 D : serde:: Deserializer < ' de > ,
679679 {
680680 #[ derive( Deserialize ) ]
681681 #[ serde( rename_all = "camelCase" ) ]
682- struct RawUnknownAuthMethod {
682+ struct RawOtherAuthMethod {
683683 #[ serde( rename = "type" ) ]
684684 type_ : String ,
685685 id : AuthMethodId ,
@@ -691,7 +691,7 @@ impl<'de> Deserialize<'de> for UnknownAuthMethod {
691691 fields : BTreeMap < String , serde_json:: Value > ,
692692 }
693693
694- let raw = RawUnknownAuthMethod :: deserialize ( deserializer) ?;
694+ let raw = RawOtherAuthMethod :: deserialize ( deserializer) ?;
695695 if is_known_auth_method_type ( & raw . type_) {
696696 return Err ( serde:: de:: Error :: custom ( format ! (
697697 "known authentication method `{}` did not match its schema" ,
@@ -719,7 +719,7 @@ fn is_known_auth_method_type(type_: &str) -> bool {
719719 }
720720}
721721
722- fn unknown_auth_method_schema ( schema : & mut Schema ) {
722+ fn other_auth_method_schema ( schema : & mut Schema ) {
723723 super :: schema_util:: reject_known_string_discriminators (
724724 schema,
725725 "type" ,
@@ -2621,16 +2621,16 @@ pub enum SessionConfigKind {
26212621 /// payload when storing, replaying, proxying, or forwarding configuration
26222622 /// data, and otherwise ignore the option or display it generically.
26232623 #[ serde( untagged) ]
2624- Unknown ( UnknownSessionConfigKind ) ,
2624+ Other ( OtherSessionConfigKind ) ,
26252625}
26262626
26272627/// Custom or future session configuration option payload.
26282628#[ derive( Debug , Clone , Serialize , JsonSchema , PartialEq , Eq ) ]
26292629#[ schemars( inline) ]
2630- #[ schemars( transform = unknown_session_config_kind_schema ) ]
2630+ #[ schemars( transform = other_session_config_kind_schema ) ]
26312631#[ serde( rename_all = "camelCase" ) ]
26322632#[ non_exhaustive]
2633- pub struct UnknownSessionConfigKind {
2633+ pub struct OtherSessionConfigKind {
26342634 /// Custom or future session configuration option type.
26352635 ///
26362636 /// Values beginning with `_` are reserved for implementation-specific
@@ -2643,7 +2643,7 @@ pub struct UnknownSessionConfigKind {
26432643 pub fields : BTreeMap < String , serde_json:: Value > ,
26442644}
26452645
2646- impl UnknownSessionConfigKind {
2646+ impl OtherSessionConfigKind {
26472647 #[ must_use]
26482648 pub fn new ( type_ : impl Into < String > , mut fields : BTreeMap < String , serde_json:: Value > ) -> Self {
26492649 fields. remove ( "type" ) ;
@@ -2654,7 +2654,7 @@ impl UnknownSessionConfigKind {
26542654 }
26552655}
26562656
2657- impl < ' de > Deserialize < ' de > for UnknownSessionConfigKind {
2657+ impl < ' de > Deserialize < ' de > for OtherSessionConfigKind {
26582658 fn deserialize < D > ( deserializer : D ) -> Result < Self , D :: Error >
26592659 where
26602660 D : serde:: Deserializer < ' de > ,
@@ -2686,7 +2686,7 @@ fn is_known_session_config_kind_type(type_: &str) -> bool {
26862686 }
26872687}
26882688
2689- fn unknown_session_config_kind_schema ( schema : & mut Schema ) {
2689+ fn other_session_config_kind_schema ( schema : & mut Schema ) {
26902690 super :: schema_util:: reject_known_string_discriminators (
26912691 schema,
26922692 "type" ,
@@ -5889,7 +5889,7 @@ mod test_serialization {
58895889
58905890 assert_eq ! ( method. id( ) . 0 . as_ref( ) , "oauth" ) ;
58915891 assert_eq ! ( method. name( ) , "OAuth" ) ;
5892- let AuthMethod :: Unknown ( unknown) = method else {
5892+ let AuthMethod :: Other ( unknown) = method else {
58935893 panic ! ( "expected unknown auth method" ) ;
58945894 } ;
58955895 assert_eq ! ( unknown. type_, "_oauth" ) ;
@@ -5899,7 +5899,7 @@ mod test_serialization {
58995899 ) ;
59005900
59015901 assert_eq ! (
5902- serde_json:: to_value( AuthMethod :: Unknown ( unknown) ) . unwrap( ) ,
5902+ serde_json:: to_value( AuthMethod :: Other ( unknown) ) . unwrap( ) ,
59035903 json!( {
59045904 "id" : "oauth" ,
59055905 "name" : "OAuth" ,
@@ -6484,7 +6484,7 @@ mod test_serialization {
64846484 . unwrap ( ) ;
64856485
64866486 assert_eq ! ( option. id. to_string( ) , "verbosity" ) ;
6487- let SessionConfigKind :: Unknown ( unknown) = & option. kind else {
6487+ let SessionConfigKind :: Other ( unknown) = & option. kind else {
64886488 panic ! ( "expected unknown config kind" ) ;
64896489 } ;
64906490 assert_eq ! ( unknown. type_, "_slider" ) ;
0 commit comments