pub struct Messages<'c> { /* private fields */ }
Implementations§
Source§impl Messages<'_>
impl Messages<'_>
pub fn new(client: &Client) -> Messages<'_>
pub async fn create( &self, request: impl Into<CreateMessagesRequest>, ) -> Result<CreateMessagesResponse, AnthropicError>
pub async fn create_stream( &self, request: impl Into<CreateMessagesRequest>, ) -> CreateMessagesResponseStream
Trait Implementations§
Auto Trait Implementations§
impl<'c> Freeze for Messages<'c>
impl<'c> !RefUnwindSafe for Messages<'c>
impl<'c> Send for Messages<'c>
impl<'c> Sync for Messages<'c>
impl<'c> Unpin for Messages<'c>
impl<'c> !UnwindSafe for Messages<'c>
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