relay_event_schema/protocol/
relay_info.rs1use relay_protocol::{Annotated, Empty, FromValue, IntoValue, Object, Value};
2
3use crate::processor::ProcessValue;
4
5#[derive(Clone, Debug, Default, PartialEq, Empty, FromValue, IntoValue, ProcessValue)]
7pub struct RelayInfo {
8 #[metastructure(required = true, max_chars = 256, max_chars_allowance = 20)]
10 pub version: Annotated<String>,
11
12 #[metastructure(required = false, max_chars = 256, max_chars_allowance = 20)]
14 pub public_key: Annotated<String>,
15
16 #[metastructure(additional_properties)]
18 pub other: Object<Value>,
19}