magnetar/magnetar_sdk/src/lib.rs

18 lines
379 B
Rust
Raw Normal View History

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;
pub mod util_types;
2023-08-04 10:28:35 +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
pub trait Packed: 'static {
type Input: 'static;
2023-08-04 10:28:35 +00:00
fn pack_from(val: Self::Input) -> Self;
2023-08-04 10:28:35 +00:00
}