pub struct MeResponse {
pub authenticated: bool,
pub auth_type: String,
pub identity: Option<String>,
pub permission_level: String,
pub rate_limit: Option<MeRateLimit>,
pub token_limits: MeTokenLimits,
pub server_version: String,
}Expand description
The full GET /v1/me body: auth identity plus both limit systems.
Fields§
§authenticated: booltrue when a bearer was presented and accepted.
auth_type: StringAuth tier vocabulary: anonymous (no/invalid bearer), read_uplift
(GitHub-SSO uplift JWT), or admin (challenge-response JWT). Matches the
JWT tier claim and the adjacent rate-limit / token-limit tier fields.
identity: Option<String>Identity string (GitHub login or admin user id), when authenticated.
permission_level: Stringread / write / admin.
rate_limit: Option<MeRateLimit>Request rate-limit bucket state. None (serialized as null) when the
limiter is disabled.
token_limits: MeTokenLimitsEmbedding token-budget windows (hourly + daily).
server_version: StringThe server’s package version.
Trait Implementations§
Source§impl Clone for MeResponse
impl Clone for MeResponse
Source§fn clone(&self) -> MeResponse
fn clone(&self) -> MeResponse
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for MeResponse
impl Debug for MeResponse
Source§impl<'de> Deserialize<'de> for MeResponse
impl<'de> Deserialize<'de> for MeResponse
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for MeResponse
Source§impl PartialEq for MeResponse
impl PartialEq for MeResponse
Source§fn eq(&self, other: &MeResponse) -> bool
fn eq(&self, other: &MeResponse) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for MeResponse
impl Serialize for MeResponse
impl StructuralPartialEq for MeResponse
Auto Trait Implementations§
impl Freeze for MeResponse
impl RefUnwindSafe for MeResponse
impl Send for MeResponse
impl Sync for MeResponse
impl Unpin for MeResponse
impl UnsafeUnpin for MeResponse
impl UnwindSafe for MeResponse
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.