pub enum Author {
Profile(Profile),
ApiKey(PartialApiKey),
Model,
Address(String),
}Expand description
Who wrote a message: a person, an agent posting with an API key (only its name, never
its id), an app’s own agent ('MODEL', such as an inbox agent), or an outside address
such as a phone number or an email. Parrot’s own model replies have none; their model
says which model wrote them.
Variants§
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Author
impl<'de> Deserialize<'de> for Author
Source§fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
Deserialize this value from the given Serde deserializer. Read more
impl StructuralPartialEq for Author
Auto Trait Implementations§
impl Forget for Author
impl Freeze for Author
impl Move for Author
impl RefUnwindSafe for Author
impl Send for Author
impl Sync for Author
impl Unpin for Author
impl UnsafeUnpin for Author
impl UnwindSafe for Author
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