#[non_exhaustive]pub struct RoleDescribe {
pub role: String,
pub limits: Limits,
pub models: Vec<ModelEntry>,
}Expand description
The answer to role.describe: {role, limits, models}.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.role: StringAlways PROVIDES, classifier/v1.
limits: Limits§models: Vec<ModelEntry>Implementations§
Source§impl RoleDescribe
impl RoleDescribe
pub fn new(limits: Limits, models: Vec<ModelEntry>) -> Self
Sourcepub fn model(&self, model: &str) -> Option<&ModelEntry>
pub fn model(&self, model: &str) -> Option<&ModelEntry>
The entry for model, if this runner serves it.
Trait Implementations§
Source§impl Clone for RoleDescribe
impl Clone for RoleDescribe
Source§impl Debug for RoleDescribe
impl Debug for RoleDescribe
Source§impl<'de> Deserialize<'de> for RoleDescribe
impl<'de> Deserialize<'de> for RoleDescribe
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
Source§impl PartialEq for RoleDescribe
impl PartialEq for RoleDescribe
Source§impl Serialize for RoleDescribe
impl Serialize for RoleDescribe
impl StructuralPartialEq for RoleDescribe
Auto Trait Implementations§
impl Freeze for RoleDescribe
impl RefUnwindSafe for RoleDescribe
impl Send for RoleDescribe
impl Sync for RoleDescribe
impl Unpin for RoleDescribe
impl UnsafeUnpin for RoleDescribe
impl UnwindSafe for RoleDescribe
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