2023-09-22 18:10:48 +00:00
|
|
|
use serde::{Deserialize, Serialize};
|
|
|
|
use ts_rs::TS;
|
|
|
|
|
2023-10-25 17:45:59 +00:00
|
|
|
pub use magnetar_mmm_parser as mmm;
|
2023-08-04 10:28:35 +00:00
|
|
|
pub mod endpoints;
|
|
|
|
pub mod types;
|
2023-09-22 18:10:48 +00:00
|
|
|
pub mod util_types;
|
2023-08-04 10:28:35 +00:00
|
|
|
|
2023-09-22 18:10:48 +00:00
|
|
|
#[derive(Debug, Clone, Copy, PartialEq, Eq, Default, Serialize, Deserialize, TS)]
|
|
|
|
#[repr(transparent)]
|
|
|
|
pub struct Required<T>(pub T);
|
2023-08-04 10:28:35 +00:00
|
|
|
|
2023-09-22 18:10:48 +00:00
|
|
|
pub trait Packed: 'static {
|
|
|
|
type Input: 'static;
|
2023-08-04 10:28:35 +00:00
|
|
|
|
2023-09-22 18:10:48 +00:00
|
|
|
fn pack_from(val: Self::Input) -> Self;
|
2023-08-04 10:28:35 +00:00
|
|
|
}
|