pub struct PublicManagedStreamContract {
pub can_be_retained: bool,
pub partitioner: PublicManagedStreamContractPartitioner,
}Expand description
The stream contract for a public stream.
JSON schema
{
"description": "The stream contract for a public stream.",
"type": "object",
"required": [
"canBeRetained",
"partitioner"
],
"properties": {
"canBeRetained": {
"description": "Whether MQTT records can have the \"retained\" flag.",
"type": "boolean"
},
"partitioner": {
"description": "The partitioner used to partition messages across different kafka partitions.",
"oneOf": [
{
"$ref": "#/components/schemas/PublicManagedStreamTopicLevelPartitioner"
},
{
"$ref": "#/components/schemas/PublicManagedStreamKafkaDefaultPartitioner"
}
],
"discriminator": {
"mapping": {
"kafkaDefault": "#/components/schemas/PublicManagedStreamKafkaDefaultPartitioner",
"topicLevel": "#/components/schemas/PublicManagedStreamTopicLevelPartitioner"
},
"propertyName": "kind"
}
}
}
}Fields§
§can_be_retained: boolWhether MQTT records can have the “retained” flag.
partitioner: PublicManagedStreamContractPartitionerThe partitioner used to partition messages across different kafka partitions.
Implementations§
Trait Implementations§
Source§impl Clone for PublicManagedStreamContract
impl Clone for PublicManagedStreamContract
Source§fn clone(&self) -> PublicManagedStreamContract
fn clone(&self) -> PublicManagedStreamContract
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for PublicManagedStreamContract
impl Debug for PublicManagedStreamContract
Source§impl<'de> Deserialize<'de> for PublicManagedStreamContract
impl<'de> Deserialize<'de> for PublicManagedStreamContract
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl From<PublicManagedStreamContract> for PublicManagedStreamContract
impl From<PublicManagedStreamContract> for PublicManagedStreamContract
Source§fn from(value: PublicManagedStreamContract) -> Self
fn from(value: PublicManagedStreamContract) -> Self
Converts to this type from the input type.
Source§impl PartialEq for PublicManagedStreamContract
impl PartialEq for PublicManagedStreamContract
Source§fn eq(&self, other: &PublicManagedStreamContract) -> bool
fn eq(&self, other: &PublicManagedStreamContract) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl TryFrom<PublicManagedStreamContract> for PublicManagedStreamContract
impl TryFrom<PublicManagedStreamContract> for PublicManagedStreamContract
Source§type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
Source§fn try_from(value: PublicManagedStreamContract) -> Result<Self, ConversionError>
fn try_from(value: PublicManagedStreamContract) -> Result<Self, ConversionError>
Performs the conversion.
impl StructuralPartialEq for PublicManagedStreamContract
Auto Trait Implementations§
impl Freeze for PublicManagedStreamContract
impl RefUnwindSafe for PublicManagedStreamContract
impl Send for PublicManagedStreamContract
impl Sync for PublicManagedStreamContract
impl Unpin for PublicManagedStreamContract
impl UnsafeUnpin for PublicManagedStreamContract
impl UnwindSafe for PublicManagedStreamContract
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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