1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
//! User credentials. /// User credentials. #[derive(Clone, Debug, PartialEq, Eq, Hash, Serialize, Deserialize)] pub struct Credentials<S = String> { /// Credentials for the main Ocean registry. pub registry: Option<Registry<S>>, } /// Credentials for the main Ocean registry. #[derive(Clone, Debug, PartialEq, Eq, Hash, Serialize, Deserialize)] pub struct Registry<S> { /// A token associated with a specific user that provides permissions for /// interacting with packages in a registry. pub token: S, }