#[non_exhaustive]pub struct SuggestionStep {
pub suggestion_type: SuggestionType,
pub rewrite_target: RewriteTarget,
/* private fields */
}Expand description
Suggestion step to skip.
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.suggestion_type: SuggestionTypeThe type of suggestion.
rewrite_target: RewriteTargetThe rewrite target.
Implementations§
Source§impl SuggestionStep
impl SuggestionStep
Sourcepub fn set_suggestion_type<T: Into<SuggestionType>>(self, v: T) -> Self
pub fn set_suggestion_type<T: Into<SuggestionType>>(self, v: T) -> Self
Sets the value of suggestion_type.
§Example
ⓘ
use google_cloud_bigquery_migration_v2::model::suggestion_step::SuggestionType;
let x0 = SuggestionStep::new().set_suggestion_type(SuggestionType::QueryCustomization);
let x1 = SuggestionStep::new().set_suggestion_type(SuggestionType::TranslationExplanation);Sourcepub fn set_rewrite_target<T: Into<RewriteTarget>>(self, v: T) -> Self
pub fn set_rewrite_target<T: Into<RewriteTarget>>(self, v: T) -> Self
Sets the value of rewrite_target.
§Example
ⓘ
use google_cloud_bigquery_migration_v2::model::suggestion_step::RewriteTarget;
let x0 = SuggestionStep::new().set_rewrite_target(RewriteTarget::SourceSql);
let x1 = SuggestionStep::new().set_rewrite_target(RewriteTarget::TargetSql);Trait Implementations§
Source§impl Clone for SuggestionStep
impl Clone for SuggestionStep
Source§fn clone(&self) -> SuggestionStep
fn clone(&self) -> SuggestionStep
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 SuggestionStep
impl Debug for SuggestionStep
Source§impl Default for SuggestionStep
impl Default for SuggestionStep
Source§fn default() -> SuggestionStep
fn default() -> SuggestionStep
Returns the “default value” for a type. Read more
Source§impl Message for SuggestionStep
impl Message for SuggestionStep
Source§impl PartialEq for SuggestionStep
impl PartialEq for SuggestionStep
impl StructuralPartialEq for SuggestionStep
Auto Trait Implementations§
impl Freeze for SuggestionStep
impl RefUnwindSafe for SuggestionStep
impl Send for SuggestionStep
impl Sync for SuggestionStep
impl Unpin for SuggestionStep
impl UnsafeUnpin for SuggestionStep
impl UnwindSafe for SuggestionStep
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