atproto made easy crates.io/crates/jacquard

support custom PLC endpoints #23

Closed nonbinary.computer
Closed opened by nonbinary.computer

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 Sign in to add to the discussion.