pub struct ChatToolEndpoint {
pub url: String,
pub token: Secret,
pub lease: Box<dyn Send + Sync>,
}Expand description
One open endpoint: Streamable HTTP at url, which needs
Authorization: Bearer <token>.
Fields§
§url: String§token: Secret§lease: Box<dyn Send + Sync>Stops the endpoint when dropped.
Auto Trait Implementations§
impl !RefUnwindSafe for ChatToolEndpoint
impl !UnwindSafe for ChatToolEndpoint
impl Forget for ChatToolEndpoint
impl Freeze for ChatToolEndpoint
impl Move for ChatToolEndpoint
impl Send for ChatToolEndpoint
impl Sync for ChatToolEndpoint
impl Unpin for ChatToolEndpoint
impl UnsafeUnpin for ChatToolEndpoint
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