Something went wrong. Try again.
A simple text chat CLI and Proof of Concept for AT Micro.
Something went wrong. Try again.
12345678910111213141516171819202122232425262728293031323334353637383940use atproto_space::{SpaceKey, SpaceType, SpaceUri};
pub mod room { use serde::Deserialize;
use crate::at_micro_nsid;
pub const META_SPACE: &'static str = at_micro_nsid!("room.meta"); pub const HOST: &'static str = at_micro_nsid!("room.host");
#[derive(Debug, Clone, Deserialize)] pub struct Host { pub uri: String, }}
/// A link to a Room.#[derive(Debug, Clone)]pub struct RoomLink { /// The Room's Authority DID. pub did: String, /// The Room's Space Key. pub key: SpaceKey,}
impl RoomLink { pub fn into_uri(self, space_type: SpaceType) -> SpaceUri { SpaceUri::new(self.did, space_type, self.key) }}
pub const SPACE_TTL: u64 = 3600;
#[macro_export]macro_rules! at_micro_nsid { ($l:literal) => { ::core::concat!("gay.sylv.at-micro.", $l) };}