feat(sdk): with clone

This commit is contained in:
Kasper Juul Hermansen 2023-02-22 22:38:15 +01:00
parent 7179f8b598
commit 266ad32dff
Signed by: kjuulh
GPG Key ID: 57B6E1465221F912
2 changed files with 369 additions and 1121 deletions

View File

@ -1,7 +1,6 @@
use dagger_core::introspection::{FullType, FullTypeFields, FullTypeFieldsArgs};
use genco::prelude::rust;
use genco::quote;
use itertools::Itertools;
use crate::functions::CommonFunctions;
use crate::rust::functions::{
@ -17,6 +16,7 @@ pub fn render_object(funcs: &CommonFunctions, t: &FullType) -> eyre::Result<rust
let arc = rust::import("std::sync", "Arc");
Ok(quote! {
#[derive(Debug, Clone)]
pub struct $(t.name.pipe(|s| format_name(s))) {
pub proc: $arc<$child>,
pub selection: $selection,

File diff suppressed because it is too large Load Diff