pub struct PullResponse {
pub received_messages: Option<Vec<ReceivedMessage>>,
}Expand description
Response for the Pull method.
§Activities
This type is used in activities, which are methods you may call on this type or where this type is involved in. The list links the activity name, along with information about where it is used (one of request and response).
- subscriptions pull projects (response)
Fields§
§received_messages: Option<Vec<ReceivedMessage>>Optional. Received Pub/Sub messages. The list will be empty if there are no more messages available in the backlog, or if no messages could be returned before the request timeout. For JSON, the response can be entirely empty. The Pub/Sub system may return fewer than the maxMessages requested even if there are more messages available in the backlog.
Trait Implementations§
Source§impl Clone for PullResponse
impl Clone for PullResponse
Source§fn clone(&self) -> PullResponse
fn clone(&self) -> PullResponse
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for PullResponse
impl Debug for PullResponse
Source§impl Default for PullResponse
impl Default for PullResponse
Source§fn default() -> PullResponse
fn default() -> PullResponse
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for PullResponse
impl<'de> Deserialize<'de> for PullResponse
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>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Serialize for PullResponse
impl Serialize for PullResponse
impl ResponseResult for PullResponse
Auto Trait Implementations§
impl Freeze for PullResponse
impl RefUnwindSafe for PullResponse
impl Send for PullResponse
impl Sync for PullResponse
impl Unpin for PullResponse
impl UnwindSafe for PullResponse
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
Mutably borrows from an owned value. Read more