pub struct RidbStreamsClient { /* private fields */ }
Implementations§
Source§impl RidbStreamsClient
impl RidbStreamsClient
pub async fn new(env: &str) -> Result<Self, Box<dyn Error>>
pub fn base_url(env: &str) -> Url
pub async fn search( &mut self, id: Option<&str>, name: Option<&str>, tags: Option<Vec<&str>>, ) -> Result<Vec<StreamHit>, Box<dyn Error>>
pub async fn get_stream( &mut self, stream_id: &str, ) -> Result<Stream, Box<dyn Error>>
pub async fn get<D: DeserializeOwned>( &mut self, url: Url, ) -> Result<D, Box<dyn Error>>
Auto Trait Implementations§
impl Freeze for RidbStreamsClient
impl !RefUnwindSafe for RidbStreamsClient
impl Send for RidbStreamsClient
impl Sync for RidbStreamsClient
impl Unpin for RidbStreamsClient
impl !UnwindSafe for RidbStreamsClient
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