pub struct ResponseMetadata {
pub next_cursor: Option<String>,
pub warnings: Vec<String>,
pub messages: Vec<String>,
pub scopes: Vec<String>,
pub accepted_scopes: Vec<String>,
}Expand description
The response_metadata of a response: the pagination cursor plus warning and error details.
Fields§
§next_cursor: Option<String>Cursor for the next page. Empty or absent on the last page.
warnings: Vec<String>Warning codes such as missing_charset.
messages: Vec<String>Detailed reasons for an error or warning (for example, what is wrong with invalid_blocks).
scopes: Vec<String>Scopes granted to the token.
accepted_scopes: Vec<String>Scopes accepted by the method.
Trait Implementations§
Source§impl Clone for ResponseMetadata
impl Clone for ResponseMetadata
Source§impl Debug for ResponseMetadata
impl Debug for ResponseMetadata
Source§impl Default for ResponseMetadata
impl Default for ResponseMetadata
Source§impl<'de> Deserialize<'de> for ResponseMetadatawhere
ResponseMetadata: Default,
impl<'de> Deserialize<'de> for ResponseMetadatawhere
ResponseMetadata: Default,
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 PartialEq for ResponseMetadata
impl PartialEq for ResponseMetadata
Source§impl Serialize for ResponseMetadata
impl Serialize for ResponseMetadata
impl StructuralPartialEq for ResponseMetadata
Auto Trait Implementations§
impl Freeze for ResponseMetadata
impl RefUnwindSafe for ResponseMetadata
impl Send for ResponseMetadata
impl Sync for ResponseMetadata
impl Unpin for ResponseMetadata
impl UnsafeUnpin for ResponseMetadata
impl UnwindSafe for ResponseMetadata
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