speedrun-api 1.3.0

A wrapper for the speedrun.com REST API
Documentation
//! # Profile
//!
//! Endpoints available for the current user's profile.

use super::endpoint::Endpoint;

/// Retrieves the user resourcce for the currently authenticated user.
#[derive(Default, Debug, Builder, Clone)]
#[builder(default, setter(into, strip_option))]
pub struct Profile {}

impl Profile {
    /// Create a builder for this endpoint.
    pub fn builder() -> ProfileBuilder {
        ProfileBuilder::default()
    }
}

impl Endpoint for Profile {
    fn endpoint(&self) -> std::borrow::Cow<'static, str> {
        "/profile".into()
    }

    fn requires_authentication(&self) -> bool {
        true
    }
}