pub struct Principal {
pub id: String,
pub per_minute: Option<u32>,
}Expand description
A principal: the owner of an API key.
Fields§
§id: StringThe principal id (letters, digits, -, _, ., @; at most 64).
per_minute: Option<u32>The key’s limit in requests per minute, when it has its own.
Trait Implementations§
impl Eq for Principal
impl StructuralPartialEq for Principal
Auto Trait Implementations§
impl Forget for Principal
impl Freeze for Principal
impl Move for Principal
impl RefUnwindSafe for Principal
impl Send for Principalwhere
RawVecInner: Send,
impl Sync for Principalwhere
RawVecInner: Sync,
impl Unpin for Principal
impl UnsafeUnpin for Principal
impl UnwindSafe for Principalwhere
RawVecInner: UnwindSafe,
Blanket Implementations§
impl<T> Allocation for T
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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.