mirror of
https://github.com/fluencelabs/marine-rs-sdk-test
synced 2024-12-04 23:30:18 +00:00
add application_id
This commit is contained in:
parent
5c36e62367
commit
34a27890cb
@ -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(),
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -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(_) => {
|
||||
|
Loading…
Reference in New Issue
Block a user