pub struct GenerateOptions {
pub group: Option<Group>,
pub access_code: Option<String>,
pub tools: Option<Vec<Tool>>,
}Expand description
The opts argument of generate_agent. Dropping the returned stream closes the socket.
Fields§
§group: Option<Group>§access_code: Option<String>§tools: Option<Vec<Tool>>Trait Implementations§
Source§impl Clone for GenerateOptions
impl Clone for GenerateOptions
Source§impl Debug for GenerateOptions
impl Debug for GenerateOptions
Auto Trait Implementations§
impl !RefUnwindSafe for GenerateOptions
impl !UnwindSafe for GenerateOptions
impl Forget for GenerateOptions
impl Freeze for GenerateOptionswhere
*const u8 is !null: Freeze,
PhantomData<u8>: Freeze,
NonZero<i32>: Freeze,
Utc: Freeze,
PhantomData<String>: Freeze,
PhantomData<GroupRef>: Freeze,
PhantomData<GroupMember>: Freeze,
PhantomData<Tool>: Freeze,
impl Move for GenerateOptions
impl Send for GenerateOptionswhere
RawVecInner: Send,
NonZero<i32>: Send,
Utc: Send,
NodeRef<Owned, String, Schema, LeafOrInternal>: Send,
BoxRaw<(String, Schema)>: Send,
BoxRaw<Schema>: Send,
RawTable<usize>: Send,
Arc<dyn Fn(Value, Arc<dyn Fn(Value) + Sync + Send>) -> Pin<Box<dyn Future<Output = Result<Map<String, Value>, Error>> + Send>> + Sync + Send>: Send,
impl Sync for GenerateOptionswhere
RawVecInner: Sync,
NonZero<i32>: Sync,
Utc: Sync,
NodeRef<Owned, String, Schema, LeafOrInternal>: Sync,
BoxRaw<(String, Schema)>: Sync,
BoxRaw<Schema>: Sync,
RawTable<usize>: Sync,
Arc<dyn Fn(Value, Arc<dyn Fn(Value) + Sync + Send>) -> Pin<Box<dyn Future<Output = Result<Map<String, Value>, Error>> + Send>> + Sync + Send>: Sync,
impl Unpin for GenerateOptionswhere
*const u8 is !null: Unpin,
NonZero<i32>: Unpin,
Utc: Unpin,
*const LeafNode<String, Schema> is !null: Unpin,
Box<(String, Schema)>: Unpin,
Box<Schema>: Unpin,
Arc<dyn Fn(Value, Arc<dyn Fn(Value) + Sync + Send>) -> Pin<Box<dyn Future<Output = Result<Map<String, Value>, Error>> + Send>> + Sync + Send>: Unpin,
impl UnsafeUnpin for GenerateOptionswhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
NonZeroI32Inner: UnsafeUnpin,
Utc: UnsafeUnpin,
PhantomData<String>: UnsafeUnpin,
PhantomData<GroupRef>: UnsafeUnpin,
PhantomData<GroupMember>: UnsafeUnpin,
PhantomData<Tool>: UnsafeUnpin,
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