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

pub struct SearchHashesRequest {
    pub hash_prefix: Vec<u8>,
    pub threat_types: Vec<i32>,
}

Request to return full hashes matched by the provided hash prefixes.

Fields

hash_prefix: Vec<u8>

A hash prefix, consisting of the most significant 4-32 bytes of a SHA256 hash. For JSON requests, this field is base64-encoded.

threat_types: Vec<i32>

Required. The ThreatLists to search in. Multiple ThreatLists may be specified.

Implementations

impl SearchHashesRequest[src]

pub fn threat_types(
    &self
) -> FilterMap<Cloned<Iter<i32>>, fn(_: i32) -> Option<ThreatType>>
[src]

Returns an iterator which yields the valid enum values contained in threat_types.

pub fn push_threat_types(&mut self, value: ThreatType)[src]

Appends the provided enum value to threat_types.

Trait Implementations

impl Clone for SearchHashesRequest[src]

impl Debug for SearchHashesRequest[src]

impl Default for SearchHashesRequest[src]

impl Message for SearchHashesRequest[src]

impl PartialEq<SearchHashesRequest> for SearchHashesRequest[src]

impl StructuralPartialEq for SearchHashesRequest[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]