[][src]Struct gcp_client::google::cloud::webrisk::v1::ComputeThreatListDiffResponse

pub struct ComputeThreatListDiffResponse {
    pub response_type: i32,
    pub additions: Option<ThreatEntryAdditions>,
    pub removals: Option<ThreatEntryRemovals>,
    pub new_version_token: Vec<u8>,
    pub checksum: Option<Checksum>,
    pub recommended_next_diff: Option<Timestamp>,
}

Fields

response_type: i32

The type of response. This may indicate that an action must be taken by the client when the response is received.

additions: Option<ThreatEntryAdditions>

A set of entries to add to a local threat type's list.

removals: Option<ThreatEntryRemovals>

A set of entries to remove from a local threat type's list. This field may be empty.

new_version_token: Vec<u8>

The new opaque client version token. This should be retained by the client and passed into the next call of ComputeThreatListDiff as 'version_token'. A separate version token should be stored and used for each threatList.

checksum: Option<Checksum>

The expected SHA256 hash of the client state; that is, of the sorted list of all hashes present in the database after applying the provided diff. If the client state doesn't match the expected state, the client must discard this diff and retry later.

recommended_next_diff: Option<Timestamp>

The soonest the client should wait before issuing any diff request. Querying sooner is unlikely to produce a meaningful diff. Waiting longer is acceptable considering the use case. If this field is not set clients may update as soon as they want.

Implementations

impl ComputeThreatListDiffResponse[src]

pub fn response_type(&self) -> ResponseType[src]

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

pub fn set_response_type(&mut self, value: ResponseType)[src]

Sets response_type to the provided enum value.

Trait Implementations

impl Clone for ComputeThreatListDiffResponse[src]

impl Debug for ComputeThreatListDiffResponse[src]

impl Default for ComputeThreatListDiffResponse[src]

impl Message for ComputeThreatListDiffResponse[src]

impl PartialEq<ComputeThreatListDiffResponse> for ComputeThreatListDiffResponse[src]

impl StructuralPartialEq for ComputeThreatListDiffResponse[src]

Auto Trait Implementations

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, 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>, 

impl<T> WithSubscriber for T[src]