magnetar/magnetar_sdk/src/lib.rs

17 lines
343 B
Rust
Raw Normal View History

use serde::{Deserialize, Serialize};
use ts_rs::TS;
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
}