#[non_exhaustive]pub struct AppendRowsResponse {
pub updated_schema: Option<TableSchema>,
pub row_errors: Vec<RowError>,
pub write_stream: String,
pub response: Option<Response>,
/* private fields */
}Expand description
Response message for AppendRows.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.updated_schema: Option<TableSchema>If backend detects a schema update, pass it to user so that user can use it to input new type of message. It will be empty when no schema updates have occurred.
row_errors: Vec<RowError>If a request failed due to corrupted rows, no rows in the batch will be appended. The API will return row level error info, so that the caller can remove the bad rows and retry the request.
write_stream: StringThe target of the append operation. Matches the write_stream in the corresponding request.
response: Option<Response>Implementations§
Source§impl AppendRowsResponse
impl AppendRowsResponse
Sourcepub fn set_updated_schema<T>(self, v: T) -> Selfwhere
T: Into<TableSchema>,
pub fn set_updated_schema<T>(self, v: T) -> Selfwhere
T: Into<TableSchema>,
Sets the value of updated_schema.
§Example
use google_cloud_bigquery::model::TableSchema;
let x = AppendRowsResponse::new().set_updated_schema(TableSchema::default()/* use setters */);Sourcepub fn set_or_clear_updated_schema<T>(self, v: Option<T>) -> Selfwhere
T: Into<TableSchema>,
pub fn set_or_clear_updated_schema<T>(self, v: Option<T>) -> Selfwhere
T: Into<TableSchema>,
Sets or clears the value of updated_schema.
§Example
use google_cloud_bigquery::model::TableSchema;
let x = AppendRowsResponse::new().set_or_clear_updated_schema(Some(TableSchema::default()/* use setters */));
let x = AppendRowsResponse::new().set_or_clear_updated_schema(None::<TableSchema>);Sourcepub fn set_row_errors<T, V>(self, v: T) -> Self
pub fn set_row_errors<T, V>(self, v: T) -> Self
Sets the value of row_errors.
§Example
use google_cloud_bigquery::model::RowError;
let x = AppendRowsResponse::new()
.set_row_errors([
RowError::default()/* use setters */,
RowError::default()/* use (different) setters */,
]);Sourcepub fn set_write_stream<T: Into<String>>(self, v: T) -> Self
pub fn set_write_stream<T: Into<String>>(self, v: T) -> Self
Sets the value of write_stream.
§Example
let x = AppendRowsResponse::new().set_write_stream("example");Sourcepub fn set_response<T: Into<Option<Response>>>(self, v: T) -> Self
pub fn set_response<T: Into<Option<Response>>>(self, v: T) -> Self
Sets the value of response.
Note that all the setters affecting response are mutually
exclusive.
§Example
use google_cloud_bigquery::model::append_rows_response::AppendResult;
let x = AppendRowsResponse::new().set_response(Some(
google_cloud_bigquery::model::append_rows_response::Response::AppendResult(AppendResult::default().into())));Sourcepub fn append_result(&self) -> Option<&Box<AppendResult>>
pub fn append_result(&self) -> Option<&Box<AppendResult>>
The value of response
if it holds a AppendResult, None if the field is not set or
holds a different branch.
Sourcepub fn set_append_result<T: Into<Box<AppendResult>>>(self, v: T) -> Self
pub fn set_append_result<T: Into<Box<AppendResult>>>(self, v: T) -> Self
Sets the value of response
to hold a AppendResult.
Note that all the setters affecting response are
mutually exclusive.
§Example
use google_cloud_bigquery::model::append_rows_response::AppendResult;
let x = AppendRowsResponse::new().set_append_result(AppendResult::default()/* use setters */);
assert!(x.append_result().is_some());
assert!(x.error().is_none());Sourcepub fn error(&self) -> Option<&Box<Status>>
pub fn error(&self) -> Option<&Box<Status>>
The value of response
if it holds a Error, None if the field is not set or
holds a different branch.
Sourcepub fn set_error<T: Into<Box<Status>>>(self, v: T) -> Self
pub fn set_error<T: Into<Box<Status>>>(self, v: T) -> Self
Sets the value of response
to hold a Error.
Note that all the setters affecting response are
mutually exclusive.
§Example
use google_cloud_rpc::model::Status;
let x = AppendRowsResponse::new().set_error(Status::default()/* use setters */);
assert!(x.error().is_some());
assert!(x.append_result().is_none());Trait Implementations§
Source§impl Clone for AppendRowsResponse
impl Clone for AppendRowsResponse
Source§impl Debug for AppendRowsResponse
impl Debug for AppendRowsResponse
Source§impl Default for AppendRowsResponse
impl Default for AppendRowsResponse
Source§impl Message for AppendRowsResponse
impl Message for AppendRowsResponse
Source§impl PartialEq for AppendRowsResponse
impl PartialEq for AppendRowsResponse
impl StructuralPartialEq for AppendRowsResponse
Auto Trait Implementations§
impl Freeze for AppendRowsResponse
impl RefUnwindSafe for AppendRowsResponse
impl Send for AppendRowsResponse
impl Sync for AppendRowsResponse
impl Unpin for AppendRowsResponse
impl UnsafeUnpin for AppendRowsResponse
impl UnwindSafe for AppendRowsResponse
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> FutureExt for T
impl<T> FutureExt for T
Source§fn with_context(self, otel_cx: Context) -> WithContext<Self> ⓘ
fn with_context(self, otel_cx: Context) -> WithContext<Self> ⓘ
Source§fn with_current_context(self) -> WithContext<Self> ⓘ
fn with_current_context(self) -> WithContext<Self> ⓘ
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T in a tonic::Request