pub struct AgentOrganizations {
pub agent: String,
pub permitted: Permitted,
pub default: Option<String>,
pub personal: bool,
}Expand description
The agent’s organization settings, as its definition declares them.
Fields§
§agent: StringThe agent’s id, for messages.
permitted: Permitted§default: Option<String>The org a new session uses when nothing more specific applies.
personal: boolWhether the agent may run personal, org-less sessions.
Implementations§
Source§impl AgentOrganizations
impl AgentOrganizations
Sourcepub fn personal_only(agent: impl Into<String>) -> Self
pub fn personal_only(agent: impl Into<String>) -> Self
An agent with no organization settings: personal work only, which is what every agent did before organizations existed.
Trait Implementations§
Source§impl Clone for AgentOrganizations
impl Clone for AgentOrganizations
Source§impl Debug for AgentOrganizations
impl Debug for AgentOrganizations
impl Eq for AgentOrganizations
Source§impl PartialEq for AgentOrganizations
impl PartialEq for AgentOrganizations
impl StructuralPartialEq for AgentOrganizations
Auto Trait Implementations§
impl Freeze for AgentOrganizations
impl RefUnwindSafe for AgentOrganizations
impl Send for AgentOrganizations
impl Sync for AgentOrganizations
impl Unpin for AgentOrganizations
impl UnsafeUnpin for AgentOrganizations
impl UnwindSafe for AgentOrganizations
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