pub struct LocalizedText {
pub value: String,
pub language: Option<String>,
}Expand description
One language-tagged string, as DSP-API returns it in a list’s labels /
comments. ALL languages are kept (plan 034 D4) — no preferred-language
collapsing anywhere in this crate. language is None for DSP-API’s
untagged PlainStringLiteralV2 variant (D9b).
Same shape as ProjectDescription; deliberately not consolidated with
it — see the plan’s BACKLOG note. language stays Option<String>
rather than a closed Language enum, even though D9 proves the server’s
tag set is closed at exactly {de, en, fr, it, rm}: mirroring the
existing ProjectDescription precedent means an unexpected tag stays a
value the CLI can still display, rather than becoming a hard parse error
(ServerError). Reads should degrade, not refuse.
Fields§
§value: StringThe label/comment text.
language: Option<String>BCP-47-shaped language tag, if the server provides one (e.g. "en").
Trait Implementations§
Source§impl Clone for LocalizedText
impl Clone for LocalizedText
Source§impl Debug for LocalizedText
impl Debug for LocalizedText
impl Eq for LocalizedText
Source§impl PartialEq for LocalizedText
impl PartialEq for LocalizedText
impl StructuralPartialEq for LocalizedText
Auto Trait Implementations§
impl Freeze for LocalizedText
impl RefUnwindSafe for LocalizedText
impl Send for LocalizedText
impl Sync for LocalizedText
impl Unpin for LocalizedText
impl UnsafeUnpin for LocalizedText
impl UnwindSafe for LocalizedText
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.