discloud_rs/app/manage/
ram.rs1use serde::{Deserialize, Serialize};
2
3use crate::Error;
4
5#[derive(Deserialize, Debug, Clone)]
6pub struct AppRamResponse {
7 pub message: String,
8 pub status: String,
9}
10
11#[derive(Debug, Serialize)]
12pub struct AppRamBody {
13 #[serde(rename = "ramMB")]
14 pub ram: u32,
15}
16
17#[derive(Debug)]
18pub enum AppRamError {
19 ForbiddenQuantity(String),
20 Other(Error),
21}
22
23impl From<Error> for AppRamError {
24 fn from(error: Error) -> Self {
25 Self::Other(error)
26 }
27}