pub struct ProjectModel {
pub alias: String,
pub subscription: bool,
}Expand description
One alias of a project’s allow-list, as GET /api/me/keys lists it.
Fields§
§alias: String§subscription: boolServed by direct Anthropic deployments only: the gateway takes a call
paid by a Claude subscription on it, and refuses one on any other
alias (HTTP 403, code subscription_model).
Trait Implementations§
Source§impl Clone for ProjectModel
impl Clone for ProjectModel
Source§impl Debug for ProjectModel
impl Debug for ProjectModel
Source§impl<'de> Deserialize<'de> for ProjectModel
impl<'de> Deserialize<'de> for ProjectModel
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 ProjectModel
Source§impl PartialEq for ProjectModel
impl PartialEq for ProjectModel
impl StructuralPartialEq for ProjectModel
Auto Trait Implementations§
impl Forget for ProjectModel
impl Freeze for ProjectModel
impl Move for ProjectModel
impl RefUnwindSafe for ProjectModel
impl Send for ProjectModel
impl Sync for ProjectModel
impl Unpin for ProjectModel
impl UnsafeUnpin for ProjectModel
impl UnwindSafe for ProjectModel
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.