Struct ccsr::Client [−][src]
An API client for a Confluent-compatible schema registry.
Implementations
impl Client
[src]
pub async fn get_schema_by_id(&self, id: i32) -> Result<Schema, GetByIdError>
[src]
Gets the schema with the associated ID.
pub async fn get_schema_by_subject(
&self,
subject: &str
) -> Result<Schema, GetBySubjectError>
[src]
&self,
subject: &str
) -> Result<Schema, GetBySubjectError>
Gets the latest schema for the specified subject.
pub async fn publish_schema(
&self,
subject: &str,
schema: &str
) -> Result<i32, PublishError>
[src]
&self,
subject: &str,
schema: &str
) -> Result<i32, PublishError>
Publishes a new schema for the specified subject. The ID of the new schema is returned.
Note that if a schema that is identical to an existing schema for the same subject is published, the ID of the existing schema will be returned.
pub async fn list_subjects(&self) -> Result<Vec<String>, ListError>
[src]
Lists the names of all subjects that the schema registry is aware of.
pub async fn delete_subject(&self, subject: &str) -> Result<(), DeleteError>
[src]
Deletes all schema versions associated with the specified subject.
This API is only intended to be used in development environments. Deleting schemas only allows new, potentially incompatible schemas to be registered under the same subject. It does not allow the schema ID to be reused.
Trait Implementations
Auto Trait Implementations
impl !RefUnwindSafe for Client
[src]
impl Send for Client
[src]
impl Sync for Client
[src]
impl Unpin for Client
[src]
impl !UnwindSafe for Client
[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T> Instrument for T
[src]
pub fn instrument(self, span: Span) -> Instrumented<Self>
[src]
pub fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T> Instrument for T
[src]
pub fn instrument(self, span: Span) -> Instrumented<Self>
[src]
pub fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,