A better Rust ATProto crate

support custom PLC endpoints #23

closed
opened by boltless.me

Currently, the base of PlcSource::PlcDirectory is private, so we can't use custom PLC endpoints like plc directory mirror or custom plc directory for sandboxed environment.

The base should be exposed.

#[derive(Debug, Clone, PartialEq, Eq)]
pub enum PlcSource {
    /// Use the public PLC directory
    PlcDirectory {
        /// Base URL for the PLC directory
        base: Url,
    },
    /// Use the slingshot mini-docs service
    Slingshot {
        /// Base URL for the Slingshot service
        base: Url,
    },
}

Ah whoops. Oversight on my part, will adjust that, thanks for pointing it out.

shouldn't have second-guessed myself, those are public because the enum is public. they should be exposed as-is.

sign up or login to add to the discussion
Labels

None yet.

assignee

None yet.

Participants 2
AT URI
at://did:plc:xasnlahkri4ewmbuzly2rlc5/sh.tangled.repo.issue/3m6ocb7gkvz22