pub struct ConfigView {
pub scope: ConfigScope,
pub own: Layer,
pub effective: Effective,
pub has_key: bool,
pub title: String,
pub workspace: Option<WorkspaceSummary>,
}Expand description
One level’s settings, what applies there, and where each value comes from.
Fields§
§scope: ConfigScope§own: LayerWhat this level sets itself.
effective: EffectiveWhat applies at this level (to the chat, or to new chats of the workspace).
has_key: boolThis level stores its own API key (the key itself never leaves the engine).
title: StringFor the heading: the workspace’s or chat’s name.
workspace: Option<WorkspaceSummary>The workspace this level belongs to (none for global).
Trait Implementations§
Source§impl Clone for ConfigView
impl Clone for ConfigView
Source§impl Debug for ConfigView
impl Debug for ConfigView
Source§impl<'de> Deserialize<'de> for ConfigView
impl<'de> Deserialize<'de> for ConfigView
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 ConfigView
Source§impl PartialEq for ConfigView
impl PartialEq for ConfigView
Source§impl Serialize for ConfigView
impl Serialize for ConfigView
impl StructuralPartialEq for ConfigView
Auto Trait Implementations§
impl Forget for ConfigView
impl Freeze for ConfigView
impl Move for ConfigView
impl RefUnwindSafe for ConfigView
impl Send for ConfigView
impl Sync for ConfigView
impl Unpin for ConfigView
impl UnsafeUnpin for ConfigView
impl UnwindSafe for ConfigView
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