pub struct SchemaSettings {
pub encoding: Option<String>,
pub first_revision_id: Option<String>,
pub last_revision_id: Option<String>,
pub schema: Option<String>,
}
Expand description
Settings for validating messages published against a schema.
This type is not used in any activity, and only used as part of another schema.
Fields§
§encoding: Option<String>
Optional. The encoding of messages validated against schema
.
first_revision_id: Option<String>
Optional. The minimum (inclusive) revision allowed for validating messages. If empty or not present, allow any revision to be validated against last_revision or any revision created before.
last_revision_id: Option<String>
Optional. The maximum (inclusive) revision allowed for validating messages. If empty or not present, allow any revision to be validated against first_revision or any revision created after.
schema: Option<String>
Required. The name of the schema that messages published should be validated against. Format is projects/{project}/schemas/{schema}
. The value of this field will be _deleted-schema_
if the schema has been deleted.
Trait Implementations§
Source§impl Clone for SchemaSettings
impl Clone for SchemaSettings
Source§fn clone(&self) -> SchemaSettings
fn clone(&self) -> SchemaSettings
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for SchemaSettings
impl Debug for SchemaSettings
Source§impl Default for SchemaSettings
impl Default for SchemaSettings
Source§fn default() -> SchemaSettings
fn default() -> SchemaSettings
Source§impl<'de> Deserialize<'de> for SchemaSettings
impl<'de> Deserialize<'de> for SchemaSettings
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>,
Source§impl Serialize for SchemaSettings
impl Serialize for SchemaSettings
impl Part for SchemaSettings
Auto Trait Implementations§
impl Freeze for SchemaSettings
impl RefUnwindSafe for SchemaSettings
impl Send for SchemaSettings
impl Sync for SchemaSettings
impl Unpin for SchemaSettings
impl UnwindSafe for SchemaSettings
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
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>
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>
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