@@ -568,9 +568,7 @@ public func FfiConverterTypeStore_lower(_ value: Store) -> UnsafeMutableRawPoint
568
568
569
569
public struct Address {
570
570
public var guid : String
571
- public var givenName : String
572
- public var additionalName : String
573
- public var familyName : String
571
+ public var name : String
574
572
public var organization : String
575
573
public var streetAddress : String
576
574
public var addressLevel3 : String
@@ -587,11 +585,9 @@ public struct Address {
587
585
588
586
// Default memberwise initializers are never public by default, so we
589
587
// declare one manually.
590
- public init ( guid: String , givenName : String , additionalName : String , familyName : String , organization: String , streetAddress: String , addressLevel3: String , addressLevel2: String , addressLevel1: String , postalCode: String , country: String , tel: String , email: String , timeCreated: Int64 , timeLastUsed: Int64 ? , timeLastModified: Int64 , timesUsed: Int64 ) {
588
+ public init ( guid: String , name : String , organization: String , streetAddress: String , addressLevel3: String , addressLevel2: String , addressLevel1: String , postalCode: String , country: String , tel: String , email: String , timeCreated: Int64 , timeLastUsed: Int64 ? , timeLastModified: Int64 , timesUsed: Int64 ) {
591
589
self . guid = guid
592
- self . givenName = givenName
593
- self . additionalName = additionalName
594
- self . familyName = familyName
590
+ self . name = name
595
591
self . organization = organization
596
592
self . streetAddress = streetAddress
597
593
self . addressLevel3 = addressLevel3
@@ -613,13 +609,7 @@ extension Address: Equatable, Hashable {
613
609
if lhs. guid != rhs. guid {
614
610
return false
615
611
}
616
- if lhs. givenName != rhs. givenName {
617
- return false
618
- }
619
- if lhs. additionalName != rhs. additionalName {
620
- return false
621
- }
622
- if lhs. familyName != rhs. familyName {
612
+ if lhs. name != rhs. name {
623
613
return false
624
614
}
625
615
if lhs. organization != rhs. organization {
@@ -666,9 +656,7 @@ extension Address: Equatable, Hashable {
666
656
667
657
public func hash( into hasher: inout Hasher ) {
668
658
hasher. combine ( guid)
669
- hasher. combine ( givenName)
670
- hasher. combine ( additionalName)
671
- hasher. combine ( familyName)
659
+ hasher. combine ( name)
672
660
hasher. combine ( organization)
673
661
hasher. combine ( streetAddress)
674
662
hasher. combine ( addressLevel3)
@@ -689,9 +677,7 @@ public struct FfiConverterTypeAddress: FfiConverterRustBuffer {
689
677
public static func read( from buf: inout ( data: Data , offset: Data . Index ) ) throws -> Address {
690
678
return try Address (
691
679
guid: FfiConverterString . read ( from: & buf) ,
692
- givenName: FfiConverterString . read ( from: & buf) ,
693
- additionalName: FfiConverterString . read ( from: & buf) ,
694
- familyName: FfiConverterString . read ( from: & buf) ,
680
+ name: FfiConverterString . read ( from: & buf) ,
695
681
organization: FfiConverterString . read ( from: & buf) ,
696
682
streetAddress: FfiConverterString . read ( from: & buf) ,
697
683
addressLevel3: FfiConverterString . read ( from: & buf) ,
@@ -710,9 +696,7 @@ public struct FfiConverterTypeAddress: FfiConverterRustBuffer {
710
696
711
697
public static func write( _ value: Address , into buf: inout [ UInt8 ] ) {
712
698
FfiConverterString . write ( value. guid, into: & buf)
713
- FfiConverterString . write ( value. givenName, into: & buf)
714
- FfiConverterString . write ( value. additionalName, into: & buf)
715
- FfiConverterString . write ( value. familyName, into: & buf)
699
+ FfiConverterString . write ( value. name, into: & buf)
716
700
FfiConverterString . write ( value. organization, into: & buf)
717
701
FfiConverterString . write ( value. streetAddress, into: & buf)
718
702
FfiConverterString . write ( value. addressLevel3, into: & buf)
@@ -861,9 +845,7 @@ public func FfiConverterTypeCreditCard_lower(_ value: CreditCard) -> RustBuffer
861
845
}
862
846
863
847
public struct UpdatableAddressFields {
864
- public var givenName : String
865
- public var additionalName : String
866
- public var familyName : String
848
+ public var name : String
867
849
public var organization : String
868
850
public var streetAddress : String
869
851
public var addressLevel3 : String
@@ -876,10 +858,8 @@ public struct UpdatableAddressFields {
876
858
877
859
// Default memberwise initializers are never public by default, so we
878
860
// declare one manually.
879
- public init ( givenName: String , additionalName: String , familyName: String , organization: String , streetAddress: String , addressLevel3: String , addressLevel2: String , addressLevel1: String , postalCode: String , country: String , tel: String , email: String ) {
880
- self . givenName = givenName
881
- self . additionalName = additionalName
882
- self . familyName = familyName
861
+ public init ( name: String , organization: String , streetAddress: String , addressLevel3: String , addressLevel2: String , addressLevel1: String , postalCode: String , country: String , tel: String , email: String ) {
862
+ self . name = name
883
863
self . organization = organization
884
864
self . streetAddress = streetAddress
885
865
self . addressLevel3 = addressLevel3
@@ -894,13 +874,7 @@ public struct UpdatableAddressFields {
894
874
895
875
extension UpdatableAddressFields : Equatable , Hashable {
896
876
public static func == ( lhs: UpdatableAddressFields , rhs: UpdatableAddressFields ) -> Bool {
897
- if lhs. givenName != rhs. givenName {
898
- return false
899
- }
900
- if lhs. additionalName != rhs. additionalName {
901
- return false
902
- }
903
- if lhs. familyName != rhs. familyName {
877
+ if lhs. name != rhs. name {
904
878
return false
905
879
}
906
880
if lhs. organization != rhs. organization {
@@ -934,9 +908,7 @@ extension UpdatableAddressFields: Equatable, Hashable {
934
908
}
935
909
936
910
public func hash( into hasher: inout Hasher ) {
937
- hasher. combine ( givenName)
938
- hasher. combine ( additionalName)
939
- hasher. combine ( familyName)
911
+ hasher. combine ( name)
940
912
hasher. combine ( organization)
941
913
hasher. combine ( streetAddress)
942
914
hasher. combine ( addressLevel3)
@@ -952,9 +924,7 @@ extension UpdatableAddressFields: Equatable, Hashable {
952
924
public struct FfiConverterTypeUpdatableAddressFields : FfiConverterRustBuffer {
953
925
public static func read( from buf: inout ( data: Data , offset: Data . Index ) ) throws -> UpdatableAddressFields {
954
926
return try UpdatableAddressFields (
955
- givenName: FfiConverterString . read ( from: & buf) ,
956
- additionalName: FfiConverterString . read ( from: & buf) ,
957
- familyName: FfiConverterString . read ( from: & buf) ,
927
+ name: FfiConverterString . read ( from: & buf) ,
958
928
organization: FfiConverterString . read ( from: & buf) ,
959
929
streetAddress: FfiConverterString . read ( from: & buf) ,
960
930
addressLevel3: FfiConverterString . read ( from: & buf) ,
@@ -968,9 +938,7 @@ public struct FfiConverterTypeUpdatableAddressFields: FfiConverterRustBuffer {
968
938
}
969
939
970
940
public static func write( _ value: UpdatableAddressFields , into buf: inout [ UInt8 ] ) {
971
- FfiConverterString . write ( value. givenName, into: & buf)
972
- FfiConverterString . write ( value. additionalName, into: & buf)
973
- FfiConverterString . write ( value. familyName, into: & buf)
941
+ FfiConverterString . write ( value. name, into: & buf)
974
942
FfiConverterString . write ( value. organization, into: & buf)
975
943
FfiConverterString . write ( value. streetAddress, into: & buf)
976
944
FfiConverterString . write ( value. addressLevel3, into: & buf)
0 commit comments