photon_api/models/
account_with_context.rs1use crate::models;
12
13#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
14pub struct AccountWithContext {
15 #[serde(rename = "account")]
16 pub account: Box<models::Account>,
17 #[serde(rename = "context")]
18 pub context: Box<models::AccountContext>,
19}
20
21impl AccountWithContext {
22 pub fn new(account: models::Account, context: models::AccountContext) -> AccountWithContext {
23 AccountWithContext {
24 account: Box::new(account),
25 context: Box::new(context),
26 }
27 }
28}