#[non_exhaustive]pub struct ListDataSourcesResponse {
pub data_sources: Vec<DataSource>,
pub next_page_token: String,
/* private fields */
}Expand description
Returns list of supported data sources and their metadata.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.data_sources: Vec<DataSource>List of supported data sources and their transfer settings.
next_page_token: StringOutput only. The next-pagination token. For multiple-page list results,
this token can be used as the
ListDataSourcesRequest.page_token
to request the next page of list results.
Implementations§
Source§impl ListDataSourcesResponse
impl ListDataSourcesResponse
pub fn new() -> Self
Sourcepub fn set_data_sources<T, V>(self, v: T) -> Self
pub fn set_data_sources<T, V>(self, v: T) -> Self
Sets the value of data_sources.
Sourcepub fn set_next_page_token<T: Into<String>>(self, v: T) -> Self
pub fn set_next_page_token<T: Into<String>>(self, v: T) -> Self
Sets the value of next_page_token.
Trait Implementations§
Source§impl Clone for ListDataSourcesResponse
impl Clone for ListDataSourcesResponse
Source§fn clone(&self) -> ListDataSourcesResponse
fn clone(&self) -> ListDataSourcesResponse
Returns a copy 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 ListDataSourcesResponse
impl Debug for ListDataSourcesResponse
Source§impl Default for ListDataSourcesResponse
impl Default for ListDataSourcesResponse
Source§fn default() -> ListDataSourcesResponse
fn default() -> ListDataSourcesResponse
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ListDataSourcesResponsewhere
ListDataSourcesResponse: Default,
impl<'de> Deserialize<'de> for ListDataSourcesResponsewhere
ListDataSourcesResponse: 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 Message for ListDataSourcesResponse
impl Message for ListDataSourcesResponse
Source§impl PartialEq for ListDataSourcesResponse
impl PartialEq for ListDataSourcesResponse
Source§impl Serialize for ListDataSourcesResponse
impl Serialize for ListDataSourcesResponse
impl StructuralPartialEq for ListDataSourcesResponse
Auto Trait Implementations§
impl Freeze for ListDataSourcesResponse
impl RefUnwindSafe for ListDataSourcesResponse
impl Send for ListDataSourcesResponse
impl Sync for ListDataSourcesResponse
impl Unpin for ListDataSourcesResponse
impl UnwindSafe for ListDataSourcesResponse
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