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

pub struct ValidateMessageRequest {
    pub parent: String,
    pub message: Vec<u8>,
    pub encoding: i32,
    pub schema_spec: Option<SchemaSpec>,
}

Request for the ValidateMessage method.

Fields

parent: String

Required. The name of the project in which to validate schemas. Format is projects/{project-id}.

message: Vec<u8>

Message to validate against the provided schema_spec.

encoding: i32

The encoding expected for messages

schema_spec: Option<SchemaSpec>

Implementations

impl ValidateMessageRequest[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 ValidateMessageRequest[src]

impl Debug for ValidateMessageRequest[src]

impl Default for ValidateMessageRequest[src]

impl Message for ValidateMessageRequest[src]

impl PartialEq<ValidateMessageRequest> for ValidateMessageRequest[src]

impl StructuralPartialEq for ValidateMessageRequest[src]

Auto Trait Implementations

impl RefUnwindSafe for ValidateMessageRequest

impl Send for ValidateMessageRequest

impl Sync for ValidateMessageRequest

impl Unpin for ValidateMessageRequest

impl UnwindSafe for ValidateMessageRequest

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]