pub struct HttpRegistryClient { /* private fields */ }Expand description
The RegistryClient this crate ships: Confluent’s HTTP API over reqwest, rustls only.
Trait Implementations§
Source§impl Debug for HttpRegistryClient
impl Debug for HttpRegistryClient
Source§impl RegistryClient for HttpRegistryClient
impl RegistryClient for HttpRegistryClient
Source§fn schema_by_id(
&self,
id: u32,
) -> BoxFuture<'_, Result<Arc<RegisteredSchema>, KafkaError>>
fn schema_by_id( &self, id: u32, ) -> BoxFuture<'_, Result<Arc<RegisteredSchema>, KafkaError>>
The schema the registry holds under
id. Read moreSource§fn latest(
&self,
subject: &str,
) -> BoxFuture<'_, Result<Option<Arc<RegisteredSchema>>, KafkaError>>
fn latest( &self, subject: &str, ) -> BoxFuture<'_, Result<Option<Arc<RegisteredSchema>>, KafkaError>>
Source§fn register(
&self,
subject: &str,
schema_type: SchemaType,
definition: String,
) -> BoxFuture<'_, Result<u32, KafkaError>>
fn register( &self, subject: &str, schema_type: SchemaType, definition: String, ) -> BoxFuture<'_, Result<u32, KafkaError>>
Registers
definition under subject and returns the id, which is idempotent
registry-side: an identical schema keeps the id it already had. Read moreSource§fn lookup_id(
&self,
subject: &str,
schema_type: SchemaType,
definition: String,
) -> BoxFuture<'_, Result<u32, KafkaError>>
fn lookup_id( &self, subject: &str, schema_type: SchemaType, definition: String, ) -> BoxFuture<'_, Result<u32, KafkaError>>
Source§fn is_compatible(
&self,
subject: &str,
schema_type: SchemaType,
definition: String,
) -> BoxFuture<'_, Result<Option<bool>, KafkaError>>
fn is_compatible( &self, subject: &str, schema_type: SchemaType, definition: String, ) -> BoxFuture<'_, Result<Option<bool>, KafkaError>>
Whether the registry would register
definition under subject, judged by the
compatibility level the subject is configured with. Read moreAuto Trait Implementations§
impl !RefUnwindSafe for HttpRegistryClient
impl !UnwindSafe for HttpRegistryClient
impl Freeze for HttpRegistryClient
impl Send for HttpRegistryClient
impl Sync for HttpRegistryClient
impl Unpin for HttpRegistryClient
impl UnsafeUnpin for HttpRegistryClient
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
impl<T> ErasedDestructor for Twhere
T: 'static,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more