use cala_types::{account_set::AccountSetValues, primitives::AccountSetId};
use serde::{Deserialize, Serialize};

#[derive(Debug, Serialize, Deserialize)]
pub struct AccountSetByNameCursor {
    pub name: String,
    pub id: AccountSetId,
}

impl From<&AccountSetValues> for AccountSetByNameCursor {
    fn from(values: &AccountSetValues) -> Self {
        Self {
            name: values.name.clone(),
            id: values.id,
        }
    }
}
