add application_id

This commit is contained in:
vms 2020-08-24 15:10:57 +03:00
parent 5c36e62367
commit 34a27890cb
2 changed files with 5 additions and 1 deletions

View File

@ -22,17 +22,20 @@ use fluence_sdk_macro::fce;
pub struct CallParameters {
pub call_id: String,
pub user_name: String,
pub application_id: String,
}
impl CallParameters {
pub fn new<C, U>(call_id: C, user_name: U) -> Self
pub fn new<C, U, A>(call_id: C, user_name: U, application_id: A) -> Self
where
C: Into<String>,
U: Into<String>,
A: Into<String>,
{
Self {
call_id: call_id.into(),
user_name: user_name.into(),
application_id: application_id.into(),
}
}
}

View File

@ -41,6 +41,7 @@ impl RecordSerializerGlueCodeGenerator for fce_ast_types::AstRecordItem {
quote! {
raw_record.push(#field_ident.as_ptr() as _);
raw_record.push(#field_ident.len() as _);
std::mem::forget(#field_ident);
}
}
ParsedType::Record(_) => {