Skip to content

Conversation

@clintonpi
Copy link
Contributor

Motivation:

The parser and serializer for the Display String type have been implemented. The high-level encoder and decoder should follow.

Modifications:

Implement the encoder and decoder for Display String.

Result:

The StructuredFieldValues module will support the Display String type.

Motivation:

The parser and serializer for the Display String type have been implemented. The high-level encoder and decoder should follow.

Modifications:

Implement the encoder and decoder for Display String.

Result:

The StructuredFieldValues module will support the Display String type.
@Lukasa Lukasa added the 🆕 semver/minor Adds new public API. label Nov 29, 2024
//===----------------------------------------------------------------------===//

/// A type that represents the Display String Structured Type.
public struct DisplayString: Codable, Equatable {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Probably nicer to use RawRepresentable and set rawValue as String. There's no real need to have private(set) here anyway.

Also add Hashable conformance.

@clintonpi clintonpi requested a review from Lukasa December 2, 2024 09:09
Copy link
Contributor

@Lukasa Lukasa left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice one, thanks! ✨

@Lukasa Lukasa enabled auto-merge (squash) December 9, 2024 18:28
@Lukasa Lukasa merged commit be84570 into apple:main Dec 10, 2024
22 checks passed
@clintonpi clintonpi deleted the rfc-9651/support-for-display-string branch December 10, 2024 09:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

🆕 semver/minor Adds new public API.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants