pub struct PutRequestBuilder { /* private fields */ }
Expand description
Builder for PutRequest
.
Implementations§
Source§impl PutRequestBuilder
impl PutRequestBuilder
Sourcepub fn content<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
pub fn content<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
The content of the schema to be added or updated in the registry.
Sourcepub fn format<VALUE: Into<Format>>(&mut self, value: VALUE) -> &mut Self
pub fn format<VALUE: Into<Format>>(&mut self, value: VALUE) -> &mut Self
The format of the schema. Specifies how the schema content should be interpreted.
Sourcepub fn schema_type<VALUE: Into<SchemaType>>(
&mut self,
value: VALUE,
) -> &mut Self
pub fn schema_type<VALUE: Into<SchemaType>>( &mut self, value: VALUE, ) -> &mut Self
The type of the schema, such as message schema or data schema.
Optional metadata tags to associate with the schema. These tags can be used to store additional information about the schema in key-value format.
Sourcepub fn version<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
pub fn version<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
The version of the schema to add or update. If not specified, defaults to “1”.
Sourcepub fn build(&self) -> Result<PutRequest, PutRequestBuilderError>
pub fn build(&self) -> Result<PutRequest, PutRequestBuilderError>
Trait Implementations§
Source§impl Clone for PutRequestBuilder
impl Clone for PutRequestBuilder
Source§fn clone(&self) -> PutRequestBuilder
fn clone(&self) -> PutRequestBuilder
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl Freeze for PutRequestBuilder
impl RefUnwindSafe for PutRequestBuilder
impl Send for PutRequestBuilder
impl Sync for PutRequestBuilder
impl Unpin for PutRequestBuilder
impl UnwindSafe for PutRequestBuilder
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