Struct gapi_grpc::google::pubsub::v1::SchemaSettings[][src]

pub struct SchemaSettings {
    pub schema: String,
    pub encoding: i32,
}

Settings for validating messages published against a schema.

Fields

schema: 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.

encoding: i32

The encoding of messages validated against schema.

Implementations

impl SchemaSettings[src]

pub fn encoding(&self) -> Encoding[src]

Returns the enum value of encoding, or the default if the field is set to an invalid enum value.

pub fn set_encoding(&mut self, value: Encoding)[src]

Sets encoding to the provided enum value.

Trait Implementations

impl Clone for SchemaSettings[src]

impl Debug for SchemaSettings[src]

impl Default for SchemaSettings[src]

impl Message for SchemaSettings[src]

impl PartialEq<SchemaSettings> for SchemaSettings[src]

impl StructuralPartialEq for SchemaSettings[src]

Auto Trait Implementations

impl RefUnwindSafe for SchemaSettings

impl Send for SchemaSettings

impl Sync for SchemaSettings

impl Unpin for SchemaSettings

impl UnwindSafe for SchemaSettings

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> IntoRequest<T> for T[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>, 
[src]

impl<T> WithSubscriber for T[src]