How to escape/de-descape with Serde

Đang mở
#720 2 bình luận 1 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

Chưa có ai nhận issue này.

Đánh giá

Độ khó
2/5
Thời gian dự kiến
1-3 giờ
Mức phù hợp với người mới
28/100
Loại issue
Tính năng
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Đình trệ
Công nghệ
rust
Lĩnh vực
backend

Hướng nghiên cứu

Start by reading the Serde serialization API around se::to_string and how it writes XML text and attributes. Check the escaping behavior for quotes and other characters, then determine whether the API offers an option or requires lower-level calls; done means the supported way to escape serialized messages is clear and works for the reported protocol use case.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

enhancement help wanted serde

Sorry if I'm spamming with question; my project involves implementing a very complicated XML-encoded protocol so y'all will likely be hearing a lot from me lol.

I just now started sending messages that require escaping and was surprised to find that se::to_string doesn't escape " or ' (I haven't tried other characters) by default. Is there a way to enable this or will I have to get into more low-level APIs for this?

Ngôn ngữ chính
Rust
Star
1.6k
Fork
299
Merge trung bình
2 ngày 4 giờ
Pull request đã merge (30 ngày)
9

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của tafia/quick-xml

Tất cả issue của tafia/quick-xml

Issue tương tự

Thêm issue về Rust

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.