Unmodified copy of the tsclientlib workspace crates (MIT OR Apache-2.0) with the tsdeclarations submodule (83cb8a9) flattened into plain files. See crates/proto/UPSTREAM.md for the path mapping. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01NJvYyRmTjKcb9i8eyYXK5G
15 lines
407 B
Plaintext
15 lines
407 B
Plaintext
<#@ template cleanws="true" #>
|
|
<# for struc in &self.0.structs { #>
|
|
<#= doc_comment(&struc.doc) #>
|
|
#[derive(Clone, Debug, Deserialize, PartialEq, Serialize)]
|
|
pub struct <#= struc.name #> {
|
|
<# for p in struc.get_all_properties() {
|
|
if let Some(ref doc) = p.get_doc() { #>
|
|
<#= indent(doc_comment(doc), 1) #>
|
|
<# } #>
|
|
pub <#= p.get_attr_name(&struc) #>: <#= p.get_type(&self.0.structs)? #>,
|
|
<# } #>
|
|
}
|
|
|
|
<# } #>
|