#[non_exhaustive]pub struct LogicalView {
pub name: String,
pub query: String,
pub etag: String,
pub deletion_protection: bool,
/* private fields */
}Expand description
A SQL logical view object that can be referenced in SQL queries.
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.name: StringIdentifier. The unique name of the logical view.
Format:
projects/{project}/instances/{instance}/logicalViews/{logical_view}
query: StringRequired. The logical view’s select query.
etag: StringOptional. The etag for this logical view. This may be sent on update requests to ensure that the client has an up-to-date value before proceeding. The server returns an ABORTED error on a mismatched etag.
deletion_protection: boolOptional. Set to true to make the LogicalView protected against deletion.
Implementations§
Source§impl LogicalView
impl LogicalView
pub fn new() -> Self
Sourcepub fn set_deletion_protection<T: Into<bool>>(self, v: T) -> Self
pub fn set_deletion_protection<T: Into<bool>>(self, v: T) -> Self
Sets the value of deletion_protection.
§Example
ⓘ
let x = LogicalView::new().set_deletion_protection(true);Trait Implementations§
Source§impl Clone for LogicalView
impl Clone for LogicalView
Source§fn clone(&self) -> LogicalView
fn clone(&self) -> LogicalView
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 LogicalView
impl Debug for LogicalView
Source§impl Default for LogicalView
impl Default for LogicalView
Source§fn default() -> LogicalView
fn default() -> LogicalView
Returns the “default value” for a type. Read more
Source§impl Message for LogicalView
impl Message for LogicalView
Source§impl PartialEq for LogicalView
impl PartialEq for LogicalView
impl StructuralPartialEq for LogicalView
Auto Trait Implementations§
impl Freeze for LogicalView
impl RefUnwindSafe for LogicalView
impl Send for LogicalView
impl Sync for LogicalView
impl Unpin for LogicalView
impl UnwindSafe for LogicalView
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