Struct TableResult

Source
pub struct TableResult { /* private fields */ }
Expand description

Struct representing the result of a TableRequest or a GetTableRequest.

Implementations§

Source§

impl TableResult

Source

pub async fn wait_for_completion( &mut self, h: &Handle, wait: Duration, delay: Duration, ) -> Result<(), NoSQLError>

Wait for a TableRequest to complete.

This method will loop, polling the system for the status of the SystemRequest until it either succeeds, gets an error, or times out.

Source

pub async fn wait_for_completion_ms( &mut self, h: &Handle, wait_ms: u64, delay_ms: u64, ) -> Result<(), NoSQLError>

Wait for a TableRequest to complete.

This method will loop, polling the system for the status of the SystemRequest until it either succeeds, gets an error, or times out.

This is a convenience method to allow direct millisecond values instead of creating Duration structs.

Source

pub fn table_name(&self) -> String

Get the table name.

This is only valid for GetTableRequest.

Source

pub fn compartment_id(&self) -> String

Cloud only: get the compartment id of the table.

This is only valid for GetTableRequest.

Source

pub fn namespace(&self) -> String

On-premises only: get the namespace of the table.

This is only valid for GetTableRequest.

Source

pub fn table_ocid(&self) -> String

Cloud only: get the OCID of the table.

This is only valid for GetTableRequest.

Source

pub fn ddl(&self) -> String

Get the DDL statement that was used to create the table.

Note this will reflect any ALTER TABLE operations as well.

Source

pub fn operation_id(&self) -> String

Get the internal operation ID for an in-progress table request.

This is typically not needed by applications; it is available for testing purposes only. Internally, TableResult::wait_for_completion() uses this value when polling the system.

Source

pub fn schema(&self) -> String

Get the schema of the table.

Note this will reflect any ALTER TABLE operations as well.

Source

pub fn state(&self) -> TableState

Get the current state of the table.

Source

pub fn limits(&self) -> Option<TableLimits>

Cloud only: get the table limits.

Source

pub fn match_etag(&self) -> Option<String>

Cloud only: get the match ETag for the table.

see TableRequest::match_etag() for more details.

Trait Implementations§

Source§

impl Debug for TableResult

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Default for TableResult

Source§

fn default() -> TableResult

Returns the “default value” for a type. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> PolicyExt for T
where T: ?Sized,

Source§

fn and<P, B, E>(self, other: P) -> And<T, P>
where T: Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns Action::Follow only if self and other return Action::Follow. Read more
Source§

fn or<P, B, E>(self, other: P) -> Or<T, P>
where T: Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns Action::Follow if either self or other returns Action::Follow. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

impl<T> ErasedDestructor for T
where T: 'static,