pub struct ResourceObject<T>{
    pub ids: Option<HashMap<String, String>>,
    pub data: Option<T>,
    pub mask: Option<FieldMask>,
}
Expand description

Generic resource wrapper struct used to implement our generic traits

Fields§

§ids: Option<HashMap<String, String>>

unique ids of the resource HashMap<String, String>

§data: Option<T>

resource field data

§mask: Option<FieldMask>

field mask used for update actions

Trait Implementations§

source§

impl<T> Clone for ResourceObject<T>

source§

fn clone(&self) -> ResourceObject<T>

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl<T> Debug for ResourceObject<T>

source§

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

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

impl<T> From<Id> for ResourceObject<T>
where Self: ObjectType<T>, T: GrpcDataObjectType + Message,

source§

fn from(id: Id) -> Self

Converts to this type from the input type.
source§

impl<T> From<Ids> for ResourceObject<T>
where Self: ObjectType<T>, T: GrpcDataObjectType + Message,

source§

fn from(ids: Ids) -> Self

Converts to this type from the input type.
source§

impl From<Object> for ResourceObject<Data>

source§

fn from(obj: Object) -> Self

Converts to this type from the input type.
source§

impl From<Object> for ResourceObject<Data>

source§

fn from(obj: Object) -> Self

Converts to this type from the input type.
source§

impl From<Object> for ResourceObject<Data>

source§

fn from(obj: Object) -> Self

Converts to this type from the input type.
source§

impl From<Object> for ResourceObject<Data>

source§

fn from(obj: Object) -> Self

Converts to this type from the input type.
source§

impl From<Object> for ResourceObject<Data>

source§

fn from(obj: Object) -> Self

Converts to this type from the input type.
source§

impl From<Object> for ResourceObject<Data>

source§

fn from(obj: Object) -> Self

Converts to this type from the input type.
source§

impl From<Object> for ResourceObject<Data>

source§

fn from(obj: Object) -> Self

Converts to this type from the input type.
source§

impl From<Object> for ResourceObject<Data>

source§

fn from(obj: Object) -> Self

Converts to this type from the input type.
source§

impl From<Object> for ResourceObject<Data>

source§

fn from(obj: Object) -> Self

Converts to this type from the input type.
source§

impl From<Object> for ResourceObject<Data>

source§

fn from(obj: Object) -> Self

Converts to this type from the input type.
source§

impl From<Object> for ResourceObject<Data>

source§

fn from(obj: Object) -> Self

Converts to this type from the input type.
source§

impl From<Object> for ResourceObject<Data>

source§

fn from(obj: Object) -> Self

Converts to this type from the input type.
source§

impl From<Object> for ResourceObject<Data>

source§

fn from(obj: Object) -> Self

Converts to this type from the input type.
source§

impl From<ResourceObject<Data>> for Object

source§

fn from(obj: ResourceObject<Data>) -> Self

Converts to this type from the input type.
source§

impl From<ResourceObject<Data>> for Object

source§

fn from(obj: ResourceObject<Data>) -> Self

Converts to this type from the input type.
source§

impl From<ResourceObject<Data>> for Object

source§

fn from(obj: ResourceObject<Data>) -> Self

Converts to this type from the input type.
source§

impl From<ResourceObject<Data>> for Object

source§

fn from(obj: ResourceObject<Data>) -> Self

Converts to this type from the input type.
source§

impl From<ResourceObject<Data>> for Object

source§

fn from(obj: ResourceObject<Data>) -> Self

Converts to this type from the input type.
source§

impl From<ResourceObject<Data>> for Object

source§

fn from(obj: ResourceObject<Data>) -> Self

Converts to this type from the input type.
source§

impl From<ResourceObject<Data>> for Object

source§

fn from(obj: ResourceObject<Data>) -> Self

Converts to this type from the input type.
source§

impl From<ResourceObject<Data>> for Object

source§

fn from(obj: ResourceObject<Data>) -> Self

Converts to this type from the input type.
source§

impl From<ResourceObject<Data>> for Object

source§

fn from(obj: ResourceObject<Data>) -> Self

Converts to this type from the input type.
source§

impl From<ResourceObject<Data>> for Object

source§

fn from(obj: ResourceObject<Data>) -> Self

Converts to this type from the input type.
source§

impl From<ResourceObject<Data>> for Object

source§

fn from(obj: ResourceObject<Data>) -> Self

Converts to this type from the input type.
source§

impl From<ResourceObject<Data>> for Object

source§

fn from(obj: ResourceObject<Data>) -> Self

Converts to this type from the input type.
source§

impl From<ResourceObject<Data>> for Object

source§

fn from(obj: ResourceObject<Data>) -> Self

Converts to this type from the input type.
source§

impl From<RowData> for ResourceObject<Data>

source§

fn from(row_data: RowData) -> Self

Converts to this type from the input type.
source§

impl<T> From<T> for ResourceObject<T>
where Self: ObjectType<T>, T: GrpcDataObjectType + Message,

source§

fn from(obj: T) -> Self

Converts to this type from the input type.
source§

impl From<UpdateObject> for ResourceObject<Data>

source§

fn from(obj: UpdateObject) -> Self

Converts to this type from the input type.
source§

impl From<UpdateObject> for ResourceObject<Data>

source§

fn from(obj: UpdateObject) -> Self

Converts to this type from the input type.
source§

impl From<UpdateObject> for ResourceObject<Data>

source§

fn from(obj: UpdateObject) -> Self

Converts to this type from the input type.
source§

impl From<UpdateObject> for ResourceObject<Data>

source§

fn from(obj: UpdateObject) -> Self

Converts to this type from the input type.
source§

impl From<UpdateObject> for ResourceObject<Data>

source§

fn from(obj: UpdateObject) -> Self

Converts to this type from the input type.
source§

impl From<UpdateObject> for ResourceObject<Data>

source§

fn from(obj: UpdateObject) -> Self

Converts to this type from the input type.
source§

impl From<UpdateObject> for ResourceObject<Data>

source§

fn from(obj: UpdateObject) -> Self

Converts to this type from the input type.
source§

impl From<UpdateObject> for ResourceObject<Data>

source§

fn from(obj: UpdateObject) -> Self

Converts to this type from the input type.
source§

impl From<UpdateObject> for ResourceObject<Data>

source§

fn from(obj: UpdateObject) -> Self

Converts to this type from the input type.
source§

impl From<UpdateObject> for ResourceObject<Data>

source§

fn from(obj: UpdateObject) -> Self

Converts to this type from the input type.
source§

impl From<UpdateObject> for ResourceObject<Data>

source§

fn from(obj: UpdateObject) -> Self

Converts to this type from the input type.
source§

impl From<UpdateObject> for ResourceObject<Data>

source§

fn from(obj: UpdateObject) -> Self

Converts to this type from the input type.
source§

impl From<UpdateObject> for ResourceObject<Data>

source§

fn from(obj: UpdateObject) -> Self

Converts to this type from the input type.
source§

impl<T: GrpcDataObjectType + Message> ObjectType<T> for ResourceObject<T>
where Self: Resource,

source§

fn get_ids(&self) -> Option<HashMap<String, String>>

Get ObjectType<T>’s ids field, to be implemented by trait implementor
source§

fn set_ids(&mut self, ids: HashMap<String, String>)

Set ObjectType<T>’s ids field, to be implemented by trait implementor
source§

fn get_data(&self) -> Option<T>

Get ObjectType<T>’s data field, to be implemented by trait implementor
source§

fn set_data(&mut self, data: T)

Set ObjectType<T>’s data field, to be implemented by trait implementor
source§

fn try_get_data(&self) -> Result<T, ArrErr>

source§

fn try_get_uuids(&self) -> Result<HashMap<String, Uuid>, ArrErr>

source§

fn get_value_for_id_field(&self, id_field: &str) -> Option<String>

Returns ObjectType<T>’s id_field value as Option<String> if found Read more
source§

impl PsqlInitLinkedResource for ResourceObject<Data>

source§

fn _get_create_table_query() -> String

Constructs the create table query for the resource for internal use
source§

impl PsqlInitLinkedResource for ResourceObject<Data>

source§

fn _get_create_table_query() -> String

Constructs the create table query for the resource for internal use
source§

impl PsqlInitLinkedResource for ResourceObject<Data>

source§

fn _get_create_table_query() -> String

Constructs the create table query for the resource for internal use
source§

impl PsqlInitLinkedResource for ResourceObject<Data>

source§

fn _get_create_table_query() -> String

Constructs the create table query for the resource for internal use
source§

impl PsqlInitLinkedResource for ResourceObject<Data>

source§

fn _get_create_table_query() -> String

Constructs the create table query for the resource for internal use
source§

impl PsqlInitLinkedResource for ResourceObject<Data>

source§

fn _get_create_table_query() -> String

Constructs the create table query for the resource for internal use
source§

impl PsqlInitResource for ResourceObject<Data>

source§

fn _get_create_table_query() -> String

Internal function to get the query that should be used to create the resource’s table. Should be overwritten by the implementor.
source§

fn _init_table_indices<'async_trait>( ) -> Pin<Box<dyn Future<Output = Result<(), ArrErr>> + Send + 'async_trait>>
where Self: Send + 'async_trait,

Internal function called by init_table to run table index creation queries if any indices are defined for the resource
source§

fn init_table<'async_trait>( ) -> Pin<Box<dyn Future<Output = Result<(), ArrErr>> + Send + 'async_trait>>
where Self: Send + 'async_trait,

Create table with specified columns using the resource’s psql_definition
source§

fn drop_table<'async_trait>( ) -> Pin<Box<dyn Future<Output = Result<(), ArrErr>> + Send + 'async_trait>>
where Self: Send + 'async_trait,

Drops the entire table for the resource
source§

impl PsqlInitResource for ResourceObject<Data>

source§

fn _get_create_table_query() -> String

Internal function to get the query that should be used to create the resource’s table. Should be overwritten by the implementor.
source§

fn _init_table_indices<'async_trait>( ) -> Pin<Box<dyn Future<Output = Result<(), ArrErr>> + Send + 'async_trait>>
where Self: Send + 'async_trait,

Internal function called by init_table to run table index creation queries if any indices are defined for the resource
source§

fn init_table<'async_trait>( ) -> Pin<Box<dyn Future<Output = Result<(), ArrErr>> + Send + 'async_trait>>
where Self: Send + 'async_trait,

Create table with specified columns using the resource’s psql_definition
source§

fn drop_table<'async_trait>( ) -> Pin<Box<dyn Future<Output = Result<(), ArrErr>> + Send + 'async_trait>>
where Self: Send + 'async_trait,

Drops the entire table for the resource
source§

impl PsqlInitResource for ResourceObject<Data>

source§

fn _get_create_table_query() -> String

Internal function to get the query that should be used to create the resource’s table. Should be overwritten by the implementor.
source§

fn _init_table_indices<'async_trait>( ) -> Pin<Box<dyn Future<Output = Result<(), ArrErr>> + Send + 'async_trait>>
where Self: Send + 'async_trait,

Internal function called by init_table to run table index creation queries if any indices are defined for the resource
source§

fn init_table<'async_trait>( ) -> Pin<Box<dyn Future<Output = Result<(), ArrErr>> + Send + 'async_trait>>
where Self: Send + 'async_trait,

Create table with specified columns using the resource’s psql_definition
source§

fn drop_table<'async_trait>( ) -> Pin<Box<dyn Future<Output = Result<(), ArrErr>> + Send + 'async_trait>>
where Self: Send + 'async_trait,

Drops the entire table for the resource
source§

impl PsqlInitResource for ResourceObject<Data>

source§

fn _get_create_table_query() -> String

Internal function to get the query that should be used to create the resource’s table. Should be overwritten by the implementor.
source§

fn _init_table_indices<'async_trait>( ) -> Pin<Box<dyn Future<Output = Result<(), ArrErr>> + Send + 'async_trait>>
where Self: Send + 'async_trait,

Internal function called by init_table to run table index creation queries if any indices are defined for the resource
source§

fn init_table<'async_trait>( ) -> Pin<Box<dyn Future<Output = Result<(), ArrErr>> + Send + 'async_trait>>
where Self: Send + 'async_trait,

Create table with specified columns using the resource’s psql_definition
source§

fn drop_table<'async_trait>( ) -> Pin<Box<dyn Future<Output = Result<(), ArrErr>> + Send + 'async_trait>>
where Self: Send + 'async_trait,

Drops the entire table for the resource
source§

impl PsqlInitResource for ResourceObject<Data>

source§

fn _get_create_table_query() -> String

Internal function to get the query that should be used to create the resource’s table. Should be overwritten by the implementor.
source§

fn _init_table_indices<'async_trait>( ) -> Pin<Box<dyn Future<Output = Result<(), ArrErr>> + Send + 'async_trait>>
where Self: Send + 'async_trait,

Internal function called by init_table to run table index creation queries if any indices are defined for the resource
source§

fn init_table<'async_trait>( ) -> Pin<Box<dyn Future<Output = Result<(), ArrErr>> + Send + 'async_trait>>
where Self: Send + 'async_trait,

Create table with specified columns using the resource’s psql_definition
source§

fn drop_table<'async_trait>( ) -> Pin<Box<dyn Future<Output = Result<(), ArrErr>> + Send + 'async_trait>>
where Self: Send + 'async_trait,

Drops the entire table for the resource
source§

impl PsqlInitResource for ResourceObject<Data>

source§

fn _get_create_table_query() -> String

Internal function to get the query that should be used to create the resource’s table. Should be overwritten by the implementor.
source§

fn _init_table_indices<'async_trait>( ) -> Pin<Box<dyn Future<Output = Result<(), ArrErr>> + Send + 'async_trait>>
where Self: Send + 'async_trait,

Internal function called by init_table to run table index creation queries if any indices are defined for the resource
source§

fn init_table<'async_trait>( ) -> Pin<Box<dyn Future<Output = Result<(), ArrErr>> + Send + 'async_trait>>
where Self: Send + 'async_trait,

Create table with specified columns using the resource’s psql_definition
source§

fn drop_table<'async_trait>( ) -> Pin<Box<dyn Future<Output = Result<(), ArrErr>> + Send + 'async_trait>>
where Self: Send + 'async_trait,

Drops the entire table for the resource
source§

impl PsqlInitResource for ResourceObject<Data>

source§

fn _get_create_table_query() -> String

Internal function to get the query that should be used to create the resource’s table. Should be overwritten by the implementor.
source§

fn _init_table_indices<'async_trait>( ) -> Pin<Box<dyn Future<Output = Result<(), ArrErr>> + Send + 'async_trait>>
where Self: Send + 'async_trait,

Internal function called by init_table to run table index creation queries if any indices are defined for the resource
source§

fn init_table<'async_trait>( ) -> Pin<Box<dyn Future<Output = Result<(), ArrErr>> + Send + 'async_trait>>
where Self: Send + 'async_trait,

Create table with specified columns using the resource’s psql_definition
source§

fn drop_table<'async_trait>( ) -> Pin<Box<dyn Future<Output = Result<(), ArrErr>> + Send + 'async_trait>>
where Self: Send + 'async_trait,

Drops the entire table for the resource
source§

impl PsqlInitResource for ResourceObject<Data>

source§

fn _get_create_table_query() -> String

Internal function to get the query that should be used to create the resource’s table. Should be overwritten by the implementor.
source§

fn _init_table_indices<'async_trait>( ) -> Pin<Box<dyn Future<Output = Result<(), ArrErr>> + Send + 'async_trait>>
where Self: Send + 'async_trait,

Internal function called by init_table to run table index creation queries if any indices are defined for the resource
source§

fn init_table<'async_trait>( ) -> Pin<Box<dyn Future<Output = Result<(), ArrErr>> + Send + 'async_trait>>
where Self: Send + 'async_trait,

Create table with specified columns using the resource’s psql_definition
source§

fn drop_table<'async_trait>( ) -> Pin<Box<dyn Future<Output = Result<(), ArrErr>> + Send + 'async_trait>>
where Self: Send + 'async_trait,

Drops the entire table for the resource
source§

impl PsqlInitResource for ResourceObject<Data>

source§

fn _get_create_table_query() -> String

Internal function to get the query that should be used to create the resource’s table. Should be overwritten by the implementor.
source§

fn _init_table_indices<'async_trait>( ) -> Pin<Box<dyn Future<Output = Result<(), ArrErr>> + Send + 'async_trait>>
where Self: Send + 'async_trait,

Internal function called by init_table to run table index creation queries if any indices are defined for the resource
source§

fn init_table<'async_trait>( ) -> Pin<Box<dyn Future<Output = Result<(), ArrErr>> + Send + 'async_trait>>
where Self: Send + 'async_trait,

Create table with specified columns using the resource’s psql_definition
source§

fn drop_table<'async_trait>( ) -> Pin<Box<dyn Future<Output = Result<(), ArrErr>> + Send + 'async_trait>>
where Self: Send + 'async_trait,

Drops the entire table for the resource
source§

impl PsqlInitResource for ResourceObject<Data>

source§

fn _get_create_table_query() -> String

Internal function to get the query that should be used to create the resource’s table. Should be overwritten by the implementor.
source§

fn _init_table_indices<'async_trait>( ) -> Pin<Box<dyn Future<Output = Result<(), ArrErr>> + Send + 'async_trait>>
where Self: Send + 'async_trait,

Internal function called by init_table to run table index creation queries if any indices are defined for the resource
source§

fn init_table<'async_trait>( ) -> Pin<Box<dyn Future<Output = Result<(), ArrErr>> + Send + 'async_trait>>
where Self: Send + 'async_trait,

Create table with specified columns using the resource’s psql_definition
source§

fn drop_table<'async_trait>( ) -> Pin<Box<dyn Future<Output = Result<(), ArrErr>> + Send + 'async_trait>>
where Self: Send + 'async_trait,

Drops the entire table for the resource
source§

impl PsqlInitResource for ResourceObject<Data>

source§

fn _get_create_table_query() -> String

Internal function to get the query that should be used to create the resource’s table. Should be overwritten by the implementor.
source§

fn _init_table_indices<'async_trait>( ) -> Pin<Box<dyn Future<Output = Result<(), ArrErr>> + Send + 'async_trait>>
where Self: Send + 'async_trait,

Internal function called by init_table to run table index creation queries if any indices are defined for the resource
source§

fn init_table<'async_trait>( ) -> Pin<Box<dyn Future<Output = Result<(), ArrErr>> + Send + 'async_trait>>
where Self: Send + 'async_trait,

Create table with specified columns using the resource’s psql_definition
source§

fn drop_table<'async_trait>( ) -> Pin<Box<dyn Future<Output = Result<(), ArrErr>> + Send + 'async_trait>>
where Self: Send + 'async_trait,

Drops the entire table for the resource
source§

impl PsqlInitResource for ResourceObject<Data>

source§

fn _get_create_table_query() -> String

Internal function to get the query that should be used to create the resource’s table. Should be overwritten by the implementor.
source§

fn _init_table_indices<'async_trait>( ) -> Pin<Box<dyn Future<Output = Result<(), ArrErr>> + Send + 'async_trait>>
where Self: Send + 'async_trait,

Internal function called by init_table to run table index creation queries if any indices are defined for the resource
source§

fn init_table<'async_trait>( ) -> Pin<Box<dyn Future<Output = Result<(), ArrErr>> + Send + 'async_trait>>
where Self: Send + 'async_trait,

Create table with specified columns using the resource’s psql_definition
source§

fn drop_table<'async_trait>( ) -> Pin<Box<dyn Future<Output = Result<(), ArrErr>> + Send + 'async_trait>>
where Self: Send + 'async_trait,

Drops the entire table for the resource
source§

impl PsqlInitResource for ResourceObject<Data>

source§

fn _get_create_table_query() -> String

Internal function to get the query that should be used to create the resource’s table. Should be overwritten by the implementor.
source§

fn _init_table_indices<'async_trait>( ) -> Pin<Box<dyn Future<Output = Result<(), ArrErr>> + Send + 'async_trait>>
where Self: Send + 'async_trait,

Internal function called by init_table to run table index creation queries if any indices are defined for the resource
source§

fn init_table<'async_trait>( ) -> Pin<Box<dyn Future<Output = Result<(), ArrErr>> + Send + 'async_trait>>
where Self: Send + 'async_trait,

Create table with specified columns using the resource’s psql_definition
source§

fn drop_table<'async_trait>( ) -> Pin<Box<dyn Future<Output = Result<(), ArrErr>> + Send + 'async_trait>>
where Self: Send + 'async_trait,

Drops the entire table for the resource
source§

impl PsqlInitResource for ResourceObject<Data>

source§

fn _get_create_table_query() -> String

Internal function to get the query that should be used to create the resource’s table. Should be overwritten by the implementor.
source§

fn _init_table_indices<'async_trait>( ) -> Pin<Box<dyn Future<Output = Result<(), ArrErr>> + Send + 'async_trait>>
where Self: Send + 'async_trait,

Internal function called by init_table to run table index creation queries if any indices are defined for the resource
source§

fn init_table<'async_trait>( ) -> Pin<Box<dyn Future<Output = Result<(), ArrErr>> + Send + 'async_trait>>
where Self: Send + 'async_trait,

Create table with specified columns using the resource’s psql_definition
source§

fn drop_table<'async_trait>( ) -> Pin<Box<dyn Future<Output = Result<(), ArrErr>> + Send + 'async_trait>>
where Self: Send + 'async_trait,

Drops the entire table for the resource
source§

impl PsqlInitResource for ResourceObject<Data>

source§

fn _get_create_table_query() -> String

Internal function to get the query that should be used to create the resource’s table. Should be overwritten by the implementor.
source§

fn _init_table_indices<'async_trait>( ) -> Pin<Box<dyn Future<Output = Result<(), ArrErr>> + Send + 'async_trait>>
where Self: Send + 'async_trait,

Internal function called by init_table to run table index creation queries if any indices are defined for the resource
source§

fn init_table<'async_trait>( ) -> Pin<Box<dyn Future<Output = Result<(), ArrErr>> + Send + 'async_trait>>
where Self: Send + 'async_trait,

Create table with specified columns using the resource’s psql_definition
source§

fn drop_table<'async_trait>( ) -> Pin<Box<dyn Future<Output = Result<(), ArrErr>> + Send + 'async_trait>>
where Self: Send + 'async_trait,

Drops the entire table for the resource
source§

impl PsqlInitResource for ResourceObject<Data>

source§

fn _get_create_table_query() -> String

Internal function to get the query that should be used to create the resource’s table. Should be overwritten by the implementor.
source§

fn _init_table_indices<'async_trait>( ) -> Pin<Box<dyn Future<Output = Result<(), ArrErr>> + Send + 'async_trait>>
where Self: Send + 'async_trait,

Internal function called by init_table to run table index creation queries if any indices are defined for the resource
source§

fn init_table<'async_trait>( ) -> Pin<Box<dyn Future<Output = Result<(), ArrErr>> + Send + 'async_trait>>
where Self: Send + 'async_trait,

Create table with specified columns using the resource’s psql_definition
source§

fn drop_table<'async_trait>( ) -> Pin<Box<dyn Future<Output = Result<(), ArrErr>> + Send + 'async_trait>>
where Self: Send + 'async_trait,

Drops the entire table for the resource
source§

impl PsqlInitResource for ResourceObject<Data>

source§

fn _get_create_table_query() -> String

Internal function to get the query that should be used to create the resource’s table. Should be overwritten by the implementor.
source§

fn _init_table_indices<'async_trait>( ) -> Pin<Box<dyn Future<Output = Result<(), ArrErr>> + Send + 'async_trait>>
where Self: Send + 'async_trait,

Internal function called by init_table to run table index creation queries if any indices are defined for the resource
source§

fn init_table<'async_trait>( ) -> Pin<Box<dyn Future<Output = Result<(), ArrErr>> + Send + 'async_trait>>
where Self: Send + 'async_trait,

Create table with specified columns using the resource’s psql_definition
source§

fn drop_table<'async_trait>( ) -> Pin<Box<dyn Future<Output = Result<(), ArrErr>> + Send + 'async_trait>>
where Self: Send + 'async_trait,

Drops the entire table for the resource
source§

impl PsqlInitResource for ResourceObject<Data>

source§

fn _get_create_table_query() -> String

Internal function to get the query that should be used to create the resource’s table. Should be overwritten by the implementor.
source§

fn _init_table_indices<'async_trait>( ) -> Pin<Box<dyn Future<Output = Result<(), ArrErr>> + Send + 'async_trait>>
where Self: Send + 'async_trait,

Internal function called by init_table to run table index creation queries if any indices are defined for the resource
source§

fn init_table<'async_trait>( ) -> Pin<Box<dyn Future<Output = Result<(), ArrErr>> + Send + 'async_trait>>
where Self: Send + 'async_trait,

Create table with specified columns using the resource’s psql_definition
source§

fn drop_table<'async_trait>( ) -> Pin<Box<dyn Future<Output = Result<(), ArrErr>> + Send + 'async_trait>>
where Self: Send + 'async_trait,

Drops the entire table for the resource
source§

impl PsqlInitSimpleResource for ResourceObject<Data>

source§

fn _get_create_table_query() -> String

Constructs the create table query for the resource for internal use
source§

impl PsqlInitSimpleResource for ResourceObject<Data>

source§

fn _get_create_table_query() -> String

Constructs the create table query for the resource for internal use
source§

impl PsqlInitSimpleResource for ResourceObject<Data>

source§

fn _get_create_table_query() -> String

Constructs the create table query for the resource for internal use
source§

impl PsqlInitSimpleResource for ResourceObject<Data>

source§

fn _get_create_table_query() -> String

Constructs the create table query for the resource for internal use
source§

impl PsqlInitSimpleResource for ResourceObject<Data>

source§

fn _get_create_table_query() -> String

Constructs the create table query for the resource for internal use
source§

impl PsqlInitSimpleResource for ResourceObject<Data>

source§

fn _get_create_table_query() -> String

Constructs the create table query for the resource for internal use
source§

impl PsqlInitSimpleResource for ResourceObject<Data>

source§

fn _get_create_table_query() -> String

Constructs the create table query for the resource for internal use
source§

impl PsqlInitSimpleResource for ResourceObject<Data>

source§

fn _get_create_table_query() -> String

Constructs the create table query for the resource for internal use
source§

impl PsqlInitSimpleResource for ResourceObject<Data>

source§

fn _get_create_table_query() -> String

Constructs the create table query for the resource for internal use
source§

impl PsqlInitSimpleResource for ResourceObject<Data>

source§

fn _get_create_table_query() -> String

Constructs the create table query for the resource for internal use
source§

impl PsqlInitSimpleResource for ResourceObject<Data>

source§

fn _get_create_table_query() -> String

Constructs the create table query for the resource for internal use
source§

impl PsqlInitSimpleResource for ResourceObject<Data>

source§

fn _get_create_table_query() -> String

Constructs the create table query for the resource for internal use
source§

impl<T: GrpcDataObjectType> PsqlObjectType<T> for ResourceObject<T>
where Self: ObjectType<T> + Resource,

source§

fn read<'life0, 'async_trait>( &'life0 self ) -> Pin<Box<dyn Future<Output = Result<Row, ArrErr>> + Send + 'async_trait>>
where Self: Sync + 'async_trait, 'life0: 'async_trait,

get data from the database using the Object’s UUID Read more
source§

fn update<'a, 'life0, 'life1, 'async_trait>( &'life0 self, data: &'life1 T ) -> Pin<Box<dyn Future<Output = Result<(Option<Row>, ValidationResult), ArrErr>> + Send + 'async_trait>>
where Self: Sync + 'async_trait, 'a: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Update the Object’s database record using provided data Read more
source§

fn is_archived<'life0, 'async_trait>( &'life0 self ) -> Pin<Box<dyn Future<Output = bool> + Send + 'async_trait>>
where Self: Sync + 'async_trait, 'life0: 'async_trait,

Returns true if the resource has a deleted_at field and if it’s Some Read more
source§

fn delete<'life0, 'async_trait>( &'life0 self ) -> Pin<Box<dyn Future<Output = Result<(), ArrErr>> + Send + 'async_trait>>
where Self: Sync + 'async_trait, 'life0: 'async_trait,

Calls set_deleted_at_now if the Object has a deleted_at field Read more
source§

fn set_deleted_at_now<'life0, 'async_trait>( &'life0 self ) -> Pin<Box<dyn Future<Output = Result<(), ArrErr>> + Send + 'async_trait>>
where Self: Sync + 'async_trait, 'life0: 'async_trait,

Updates the database record setting the deleted_at field to current timestamp using the Object’s UUID Read more
source§

fn delete_row<'life0, 'async_trait>( &'life0 self ) -> Pin<Box<dyn Future<Output = Result<(), ArrErr>> + Send + 'async_trait>>
where Self: Sync + 'async_trait, 'life0: 'async_trait,

Delete database record from the database using the Object’s UUID Read more
source§

fn get_update_vars<'a>( data: &'a T, psql_data: &'a PsqlData ) -> Result<(Vec<String>, Vec<&'a PsqlField>), ArrErr>

Generates the update statements and list of variables for the provided data
source§

impl<T: GrpcDataObjectType> PsqlObjectType<T> for ResourceObject<T>
where Self: ObjectType<T>,

source§

fn read<'life0, 'async_trait>( &'life0 self ) -> Pin<Box<dyn Future<Output = Result<Row, ArrErr>> + Send + 'async_trait>>
where Self: Sync + 'async_trait, 'life0: 'async_trait,

get data from the database using the Object’s UUID Read more
source§

fn update<'a, 'life0, 'life1, 'async_trait>( &'life0 self, data: &'life1 T ) -> Pin<Box<dyn Future<Output = Result<(Option<Row>, ValidationResult), ArrErr>> + Send + 'async_trait>>
where Self: Sync + 'async_trait, 'a: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Update the Object’s database record using provided data Read more
source§

fn is_archived<'life0, 'async_trait>( &'life0 self ) -> Pin<Box<dyn Future<Output = bool> + Send + 'async_trait>>
where Self: Sync + 'async_trait, 'life0: 'async_trait,

Returns true if the resource has a deleted_at field and if it’s Some Read more
source§

fn delete<'life0, 'async_trait>( &'life0 self ) -> Pin<Box<dyn Future<Output = Result<(), ArrErr>> + Send + 'async_trait>>
where Self: Sync + 'async_trait, 'life0: 'async_trait,

Calls set_deleted_at_now if the Object has a deleted_at field Read more
source§

fn set_deleted_at_now<'life0, 'async_trait>( &'life0 self ) -> Pin<Box<dyn Future<Output = Result<(), ArrErr>> + Send + 'async_trait>>
where Self: Sync + 'async_trait, 'life0: 'async_trait,

Updates the database record setting the deleted_at field to current timestamp using the Object’s UUID Read more
source§

fn delete_row<'life0, 'async_trait>( &'life0 self ) -> Pin<Box<dyn Future<Output = Result<(), ArrErr>> + Send + 'async_trait>>
where Self: Sync + 'async_trait, 'life0: 'async_trait,

Delete database record from the database using the Object’s UUID Read more
source§

impl<T: GrpcDataObjectType> PsqlObjectType<T> for ResourceObject<T>
where Self: ObjectType<T> + Resource,

source§

fn read<'life0, 'async_trait>( &'life0 self ) -> Pin<Box<dyn Future<Output = Result<Row, ArrErr>> + Send + 'async_trait>>
where Self: Sync + 'async_trait, 'life0: 'async_trait,

get data from the database using the Object’s UUIDs returns [Row] on success
source§

fn delete<'life0, 'async_trait>( &'life0 self ) -> Pin<Box<dyn Future<Output = Result<(), ArrErr>> + Send + 'async_trait>>
where Self: Sync + 'async_trait, 'life0: 'async_trait,

delete database record from the database using the Object’s primary key
source§

impl PsqlSearch for ResourceObject<Data>

Generic search function based on advanced filters
source§

fn _param_from_search_col( col: &SearchCol ) -> Result<Box<dyn ToSql + Sync + Send>, ArrErr>

Converts the passed string value for the search field into the right Sql type. for internal use
source§

impl PsqlSearch for ResourceObject<Data>

source§

fn advanced_search<'async_trait>( filter: AdvancedSearchFilter ) -> Pin<Box<dyn Future<Output = Result<Vec<Row>, ArrErr>> + Send + 'async_trait>>
where Self: Send + 'async_trait,

Generic search function based on advanced filters
source§

fn _param_from_search_col( col: &SearchCol ) -> Result<Box<dyn ToSql + Sync + Send>, ArrErr>

Converts the passed string value for the search field into the right Sql type. for internal use
source§

impl PsqlSearch for ResourceObject<Data>

source§

fn advanced_search<'async_trait>( filter: AdvancedSearchFilter ) -> Pin<Box<dyn Future<Output = Result<Vec<Row>, ArrErr>> + Send + 'async_trait>>
where Self: Send + 'async_trait,

Generic search function based on advanced filters
source§

fn _param_from_search_col( col: &SearchCol ) -> Result<Box<dyn ToSql + Sync + Send>, ArrErr>

Converts the passed string value for the search field into the right Sql type. for internal use
source§

impl PsqlSearch for ResourceObject<Data>

source§

fn advanced_search<'async_trait>( filter: AdvancedSearchFilter ) -> Pin<Box<dyn Future<Output = Result<Vec<Row>, ArrErr>> + Send + 'async_trait>>
where Self: Send + 'async_trait,

Generic search function based on advanced filters
source§

fn _param_from_search_col( col: &SearchCol ) -> Result<Box<dyn ToSql + Sync + Send>, ArrErr>

Converts the passed string value for the search field into the right Sql type. for internal use
source§

impl PsqlSearch for ResourceObject<Data>

source§

fn advanced_search<'async_trait>( filter: AdvancedSearchFilter ) -> Pin<Box<dyn Future<Output = Result<Vec<Row>, ArrErr>> + Send + 'async_trait>>
where Self: Send + 'async_trait,

Generic search function based on advanced filters
source§

fn _param_from_search_col( col: &SearchCol ) -> Result<Box<dyn ToSql + Sync + Send>, ArrErr>

Converts the passed string value for the search field into the right Sql type. for internal use
source§

impl PsqlSearch for ResourceObject<Data>

source§

fn advanced_search<'async_trait>( filter: AdvancedSearchFilter ) -> Pin<Box<dyn Future<Output = Result<Vec<Row>, ArrErr>> + Send + 'async_trait>>
where Self: Send + 'async_trait,

Generic search function based on advanced filters
source§

fn _param_from_search_col( col: &SearchCol ) -> Result<Box<dyn ToSql + Sync + Send>, ArrErr>

Converts the passed string value for the search field into the right Sql type. for internal use
source§

impl PsqlSearch for ResourceObject<Data>

source§

fn advanced_search<'async_trait>( filter: AdvancedSearchFilter ) -> Pin<Box<dyn Future<Output = Result<Vec<Row>, ArrErr>> + Send + 'async_trait>>
where Self: Send + 'async_trait,

Generic search function based on advanced filters
source§

fn _param_from_search_col( col: &SearchCol ) -> Result<Box<dyn ToSql + Sync + Send>, ArrErr>

Converts the passed string value for the search field into the right Sql type. for internal use
source§

impl PsqlSearch for ResourceObject<Data>

source§

fn advanced_search<'async_trait>( filter: AdvancedSearchFilter ) -> Pin<Box<dyn Future<Output = Result<Vec<Row>, ArrErr>> + Send + 'async_trait>>
where Self: Send + 'async_trait,

Generic search function based on advanced filters
source§

fn _param_from_search_col( col: &SearchCol ) -> Result<Box<dyn ToSql + Sync + Send>, ArrErr>

Converts the passed string value for the search field into the right Sql type. for internal use
source§

impl PsqlSearch for ResourceObject<Data>

source§

fn advanced_search<'async_trait>( filter: AdvancedSearchFilter ) -> Pin<Box<dyn Future<Output = Result<Vec<Row>, ArrErr>> + Send + 'async_trait>>
where Self: Send + 'async_trait,

Generic search function based on advanced filters
source§

fn _param_from_search_col( col: &SearchCol ) -> Result<Box<dyn ToSql + Sync + Send>, ArrErr>

Converts the passed string value for the search field into the right Sql type. for internal use
source§

impl PsqlSearch for ResourceObject<Data>

source§

fn advanced_search<'async_trait>( filter: AdvancedSearchFilter ) -> Pin<Box<dyn Future<Output = Result<Vec<Row>, ArrErr>> + Send + 'async_trait>>
where Self: Send + 'async_trait,

Generic search function based on advanced filters
source§

fn _param_from_search_col( col: &SearchCol ) -> Result<Box<dyn ToSql + Sync + Send>, ArrErr>

Converts the passed string value for the search field into the right Sql type. for internal use
source§

impl PsqlSearch for ResourceObject<Data>

source§

fn advanced_search<'async_trait>( filter: AdvancedSearchFilter ) -> Pin<Box<dyn Future<Output = Result<Vec<Row>, ArrErr>> + Send + 'async_trait>>
where Self: Send + 'async_trait,

Generic search function based on advanced filters
source§

fn _param_from_search_col( col: &SearchCol ) -> Result<Box<dyn ToSql + Sync + Send>, ArrErr>

Converts the passed string value for the search field into the right Sql type. for internal use
source§

impl PsqlSearch for ResourceObject<Data>

source§

fn advanced_search<'async_trait>( filter: AdvancedSearchFilter ) -> Pin<Box<dyn Future<Output = Result<Vec<Row>, ArrErr>> + Send + 'async_trait>>
where Self: Send + 'async_trait,

Generic search function based on advanced filters
source§

fn _param_from_search_col( col: &SearchCol ) -> Result<Box<dyn ToSql + Sync + Send>, ArrErr>

Converts the passed string value for the search field into the right Sql type. for internal use
source§

impl PsqlSearch for ResourceObject<Data>

source§

fn advanced_search<'async_trait>( filter: AdvancedSearchFilter ) -> Pin<Box<dyn Future<Output = Result<Vec<Row>, ArrErr>> + Send + 'async_trait>>
where Self: Send + 'async_trait,

Generic search function based on advanced filters
source§

fn _param_from_search_col( col: &SearchCol ) -> Result<Box<dyn ToSql + Sync + Send>, ArrErr>

Converts the passed string value for the search field into the right Sql type. for internal use
source§

impl PsqlSearch for ResourceObject<Data>

source§

fn advanced_search<'async_trait>( filter: AdvancedSearchFilter ) -> Pin<Box<dyn Future<Output = Result<Vec<Row>, ArrErr>> + Send + 'async_trait>>
where Self: Send + 'async_trait,

Generic search function based on advanced filters
source§

fn _param_from_search_col( col: &SearchCol ) -> Result<Box<dyn ToSql + Sync + Send>, ArrErr>

Converts the passed string value for the search field into the right Sql type. for internal use
source§

impl PsqlSearch for ResourceObject<Data>

source§

fn advanced_search<'async_trait>( filter: AdvancedSearchFilter ) -> Pin<Box<dyn Future<Output = Result<Vec<Row>, ArrErr>> + Send + 'async_trait>>
where Self: Send + 'async_trait,

Generic search function based on advanced filters
source§

fn _param_from_search_col( col: &SearchCol ) -> Result<Box<dyn ToSql + Sync + Send>, ArrErr>

Converts the passed string value for the search field into the right Sql type. for internal use
source§

impl PsqlSearch for ResourceObject<Data>

source§

fn advanced_search<'async_trait>( filter: AdvancedSearchFilter ) -> Pin<Box<dyn Future<Output = Result<Vec<Row>, ArrErr>> + Send + 'async_trait>>
where Self: Send + 'async_trait,

Generic search function based on advanced filters
source§

fn _param_from_search_col( col: &SearchCol ) -> Result<Box<dyn ToSql + Sync + Send>, ArrErr>

Converts the passed string value for the search field into the right Sql type. for internal use
source§

impl PsqlSearch for ResourceObject<Data>

source§

fn advanced_search<'async_trait>( filter: AdvancedSearchFilter ) -> Pin<Box<dyn Future<Output = Result<Vec<Row>, ArrErr>> + Send + 'async_trait>>
where Self: Send + 'async_trait,

Generic search function based on advanced filters
source§

fn _param_from_search_col( col: &SearchCol ) -> Result<Box<dyn ToSql + Sync + Send>, ArrErr>

Converts the passed string value for the search field into the right Sql type. for internal use
source§

impl PsqlSearch for ResourceObject<Data>

source§

fn advanced_search<'async_trait>( filter: AdvancedSearchFilter ) -> Pin<Box<dyn Future<Output = Result<Vec<Row>, ArrErr>> + Send + 'async_trait>>
where Self: Send + 'async_trait,

Generic search function based on advanced filters
source§

fn _param_from_search_col( col: &SearchCol ) -> Result<Box<dyn ToSql + Sync + Send>, ArrErr>

Converts the passed string value for the search field into the right Sql type. for internal use
source§

impl<T: GrpcDataObjectType> PsqlType for ResourceObject<T>
where Self: ObjectType<T> + Resource,

source§

fn try_get_id_field() -> Result<String, ArrErr>

Get the resource’s id column name using the resource’s ResourceDefinition
source§

fn get_by_id<'life0, 'async_trait>( id: &'life0 Uuid ) -> Pin<Box<dyn Future<Output = Result<Row, ArrErr>> + Send + 'async_trait>>
where Self: Send + 'async_trait, 'life0: 'async_trait,

Generic get by id function to get a row using the UUID column
source§

fn create<'a, 'life0, 'async_trait, T>( data: &'life0 T ) -> Pin<Box<dyn Future<Output = Result<(Option<Uuid>, ValidationResult), ArrErr>> + Send + 'async_trait>>
where T: GrpcDataObjectType + 'async_trait, Self: Send + 'async_trait, 'a: 'async_trait, 'life0: 'async_trait,

Generic create function based on resource definition and provided data. Read more
source§

impl<T: GrpcDataObjectType> PsqlType for ResourceObject<T>
where Self: ObjectType<T> + Resource,

source§

fn get_for_ids<'async_trait>( ids: HashMap<String, Uuid> ) -> Pin<Box<dyn Future<Output = Result<Row, ArrErr>> + Send + 'async_trait>>
where Self: Send + 'async_trait,

Generic get for id function to get rows for the provided key fields Since this is a linked resource, the id is expected to be given as a [Vec<FieldValuePair>] to specify the id_column / value pairs to match
source§

fn delete_for_ids<'life0, 'async_trait>( ids: HashMap<String, Uuid>, transaction: Option<&'life0 Transaction<'_>> ) -> Pin<Box<dyn Future<Output = Result<(), ArrErr>> + Send + 'async_trait>>
where Self: Send + 'async_trait, 'life0: 'async_trait,

Generic delete for ids function to delete rows for the provided key fields Since this is a linked resource, the id is expected to be given as a [Vec<FieldValuePair>] to specify the id_column / value pairs to match An optional transaction handle can be provided, which will be used if present. This function will not commit, so the caller is responsible for committing the transaction when done.
Generic link function based on resource definition and provided [Vec\<FieldValuePair\>]. If there are key/ value pairs provided in the replace [HashMap\<String, Uuid\>], all values for the given key pair will be dropped first. An UPSERT query will be used to insert a new row, or update an existing one if the primary key already exists. This function uses a transaction, making sure we’re able to insert the new values before committing any changes.
source§

impl<T: GrpcDataObjectType> PsqlType for ResourceObject<T>
where Self: ObjectType<T> + Resource,

source§

fn get_for_ids<'async_trait>( ids: HashMap<String, Uuid> ) -> Pin<Box<dyn Future<Output = Result<Row, ArrErr>> + Send + 'async_trait>>
where Self: Send + 'async_trait,

Generic get for id function to get rows for the provided key fields Since this is a linked resource, the id is expected to be given as a [Vec<FieldValuePair>] to specify the id_column / value pairs to match The provided ids should be a combined primary key, so just one result should returned.
source§

fn delete_for_ids<'life0, 'async_trait>( ids: HashMap<String, Uuid>, transaction: Option<&'life0 Transaction<'_>> ) -> Pin<Box<dyn Future<Output = Result<(), ArrErr>> + Send + 'async_trait>>
where Self: Send + 'async_trait, 'life0: 'async_trait,

Generic delete for ids function to delete rows for the provided key fields Since this is a linked resource, the id is expected to be given as a [Vec<FieldValuePair>] to specify the id_column / value pairs to match An optional transaction handle can be provided, which will be used if present. This function will not commit, so the caller is responsible for committing the transaction when done.
source§

fn create<'a, 'life0, 'async_trait, T>( row_data: &'life0 T ) -> Pin<Box<dyn Future<Output = Result<ValidationResult, ArrErr>> + Send + 'async_trait>>
where T: GrpcDataObjectType + 'async_trait, Self: Send + 'async_trait, 'a: 'async_trait, 'life0: 'async_trait,

Generic create function based on resource definition and provided data. Read more
source§

impl Resource for ResourceObject<Data>

source§

fn get_definition() -> ResourceDefinition

Allows us to implement the resource definition used for simple insert and update queries
source§

fn get_enum_string_val(field: &str, value: i32) -> Option<String>

This function should be implemented for the resources where applicable (example implementation can be found in the flight_plan module).
source§

fn get_table_indices() -> Vec<String>

This function should be implemented for the resources where applicable (example implementation can be found in the flight_plan module).
source§

fn has_id_col(id_col: &str) -> bool

Returns true if the given column name is part of the resource’s combined id
source§

fn get_psql_table() -> String

Returns the psql_table String value of the resource’s ResourceDefinition
source§

impl Resource for ResourceObject<Data>

source§

fn get_enum_string_val(field: &str, value: i32) -> Option<String>

Converts raw i32 values into string based on matching Enum value

source§

fn get_definition() -> ResourceDefinition

Allows us to implement the resource definition used for simple insert and update queries
source§

fn get_table_indices() -> Vec<String>

This function should be implemented for the resources where applicable (example implementation can be found in the flight_plan module).
source§

fn has_id_col(id_col: &str) -> bool

Returns true if the given column name is part of the resource’s combined id
source§

fn get_psql_table() -> String

Returns the psql_table String value of the resource’s ResourceDefinition
source§

impl Resource for ResourceObject<Data>

source§

fn get_definition() -> ResourceDefinition

Allows us to implement the resource definition used for simple insert and update queries
source§

fn get_enum_string_val(field: &str, value: i32) -> Option<String>

This function should be implemented for the resources where applicable (example implementation can be found in the flight_plan module).
source§

fn get_table_indices() -> Vec<String>

This function should be implemented for the resources where applicable (example implementation can be found in the flight_plan module).
source§

fn has_id_col(id_col: &str) -> bool

Returns true if the given column name is part of the resource’s combined id
source§

fn get_psql_table() -> String

Returns the psql_table String value of the resource’s ResourceDefinition
source§

impl Resource for ResourceObject<Data>

source§

fn get_enum_string_val(field: &str, value: i32) -> Option<String>

Converts raw i32 values into string based on matching Enum value

source§

fn get_definition() -> ResourceDefinition

Allows us to implement the resource definition used for simple insert and update queries
source§

fn get_table_indices() -> Vec<String>

This function should be implemented for the resources where applicable (example implementation can be found in the flight_plan module).
source§

fn has_id_col(id_col: &str) -> bool

Returns true if the given column name is part of the resource’s combined id
source§

fn get_psql_table() -> String

Returns the psql_table String value of the resource’s ResourceDefinition
source§

impl Resource for ResourceObject<Data>

source§

fn get_definition() -> ResourceDefinition

Allows us to implement the resource definition used for simple insert and update queries
source§

fn get_table_indices() -> Vec<String>

This function should be implemented for the resources where applicable (example implementation can be found in the flight_plan module).
source§

fn get_enum_string_val(field: &str, value: i32) -> Option<String>

This function should be implemented for the resources where applicable (example implementation can be found in the flight_plan module).
source§

fn has_id_col(id_col: &str) -> bool

Returns true if the given column name is part of the resource’s combined id
source§

fn get_psql_table() -> String

Returns the psql_table String value of the resource’s ResourceDefinition
source§

impl Resource for ResourceObject<Data>

source§

fn get_definition() -> ResourceDefinition

Allows us to implement the resource definition used for simple insert and update queries
source§

fn get_enum_string_val(field: &str, value: i32) -> Option<String>

This function should be implemented for the resources where applicable (example implementation can be found in the flight_plan module).
source§

fn get_table_indices() -> Vec<String>

This function should be implemented for the resources where applicable (example implementation can be found in the flight_plan module).
source§

fn has_id_col(id_col: &str) -> bool

Returns true if the given column name is part of the resource’s combined id
source§

fn get_psql_table() -> String

Returns the psql_table String value of the resource’s ResourceDefinition
source§

impl Resource for ResourceObject<Data>

source§

fn get_definition() -> ResourceDefinition

Allows us to implement the resource definition used for simple insert and update queries
source§

fn get_enum_string_val(field: &str, value: i32) -> Option<String>

This function should be implemented for the resources where applicable (example implementation can be found in the flight_plan module).
source§

fn get_table_indices() -> Vec<String>

This function should be implemented for the resources where applicable (example implementation can be found in the flight_plan module).
source§

fn has_id_col(id_col: &str) -> bool

Returns true if the given column name is part of the resource’s combined id
source§

fn get_psql_table() -> String

Returns the psql_table String value of the resource’s ResourceDefinition
source§

impl Resource for ResourceObject<Data>

source§

fn get_enum_string_val(field: &str, value: i32) -> Option<String>

Converts raw i32 values into string based on matching Enum value

source§

fn get_definition() -> ResourceDefinition

Allows us to implement the resource definition used for simple insert and update queries
source§

fn get_table_indices() -> Vec<String>

This function should be implemented for the resources where applicable (example implementation can be found in the flight_plan module).
source§

fn has_id_col(id_col: &str) -> bool

Returns true if the given column name is part of the resource’s combined id
source§

fn get_psql_table() -> String

Returns the psql_table String value of the resource’s ResourceDefinition
source§

impl Resource for ResourceObject<Data>

source§

fn get_enum_string_val(field: &str, value: i32) -> Option<String>

Converts raw i32 values into string based on matching Enum value

source§

fn get_definition() -> ResourceDefinition

Allows us to implement the resource definition used for simple insert and update queries
source§

fn get_table_indices() -> Vec<String>

This function should be implemented for the resources where applicable (example implementation can be found in the flight_plan module).
source§

fn has_id_col(id_col: &str) -> bool

Returns true if the given column name is part of the resource’s combined id
source§

fn get_psql_table() -> String

Returns the psql_table String value of the resource’s ResourceDefinition
source§

impl Resource for ResourceObject<Data>

source§

fn get_definition() -> ResourceDefinition

Allows us to implement the resource definition used for simple insert and update queries
source§

fn get_table_indices() -> Vec<String>

This function should be implemented for the resources where applicable (example implementation can be found in the flight_plan module).
source§

fn get_enum_string_val(field: &str, value: i32) -> Option<String>

This function should be implemented for the resources where applicable (example implementation can be found in the flight_plan module).
source§

fn has_id_col(id_col: &str) -> bool

Returns true if the given column name is part of the resource’s combined id
source§

fn get_psql_table() -> String

Returns the psql_table String value of the resource’s ResourceDefinition
source§

impl Resource for ResourceObject<Data>

source§

fn get_definition() -> ResourceDefinition

Allows us to implement the resource definition used for simple insert and update queries
source§

fn get_table_indices() -> Vec<String>

This function should be implemented for the resources where applicable (example implementation can be found in the flight_plan module).
source§

fn get_enum_string_val(field: &str, value: i32) -> Option<String>

This function should be implemented for the resources where applicable (example implementation can be found in the flight_plan module).
source§

fn has_id_col(id_col: &str) -> bool

Returns true if the given column name is part of the resource’s combined id
source§

fn get_psql_table() -> String

Returns the psql_table String value of the resource’s ResourceDefinition
source§

impl Resource for ResourceObject<Data>

source§

fn get_definition() -> ResourceDefinition

Allows us to implement the resource definition used for simple insert and update queries
source§

fn get_enum_string_val(field: &str, value: i32) -> Option<String>

This function should be implemented for the resources where applicable (example implementation can be found in the flight_plan module).
source§

fn get_table_indices() -> Vec<String>

This function should be implemented for the resources where applicable (example implementation can be found in the flight_plan module).
source§

fn has_id_col(id_col: &str) -> bool

Returns true if the given column name is part of the resource’s combined id
source§

fn get_psql_table() -> String

Returns the psql_table String value of the resource’s ResourceDefinition
source§

impl Resource for ResourceObject<Data>

source§

fn get_enum_string_val(field: &str, value: i32) -> Option<String>

Converts raw i32 values into string based on matching Enum value

source§

fn get_definition() -> ResourceDefinition

Allows us to implement the resource definition used for simple insert and update queries
source§

fn get_table_indices() -> Vec<String>

This function should be implemented for the resources where applicable (example implementation can be found in the flight_plan module).
source§

fn has_id_col(id_col: &str) -> bool

Returns true if the given column name is part of the resource’s combined id
source§

fn get_psql_table() -> String

Returns the psql_table String value of the resource’s ResourceDefinition
source§

impl Resource for ResourceObject<Data>

source§

fn get_definition() -> ResourceDefinition

Allows us to implement the resource definition used for simple insert and update queries
source§

fn get_enum_string_val(field: &str, value: i32) -> Option<String>

This function should be implemented for the resources where applicable (example implementation can be found in the flight_plan module).
source§

fn get_table_indices() -> Vec<String>

This function should be implemented for the resources where applicable (example implementation can be found in the flight_plan module).
source§

fn has_id_col(id_col: &str) -> bool

Returns true if the given column name is part of the resource’s combined id
source§

fn get_psql_table() -> String

Returns the psql_table String value of the resource’s ResourceDefinition
source§

impl Resource for ResourceObject<Data>

source§

fn get_definition() -> ResourceDefinition

Allows us to implement the resource definition used for simple insert and update queries
source§

fn get_enum_string_val(field: &str, value: i32) -> Option<String>

This function should be implemented for the resources where applicable (example implementation can be found in the flight_plan module).
source§

fn get_table_indices() -> Vec<String>

This function should be implemented for the resources where applicable (example implementation can be found in the flight_plan module).
source§

fn has_id_col(id_col: &str) -> bool

Returns true if the given column name is part of the resource’s combined id
source§

fn get_psql_table() -> String

Returns the psql_table String value of the resource’s ResourceDefinition
source§

impl Resource for ResourceObject<Data>

source§

fn get_definition() -> ResourceDefinition

Allows us to implement the resource definition used for simple insert and update queries
source§

fn get_table_indices() -> Vec<String>

This function should be implemented for the resources where applicable (example implementation can be found in the flight_plan module).
source§

fn get_enum_string_val(field: &str, value: i32) -> Option<String>

This function should be implemented for the resources where applicable (example implementation can be found in the flight_plan module).
source§

fn has_id_col(id_col: &str) -> bool

Returns true if the given column name is part of the resource’s combined id
source§

fn get_psql_table() -> String

Returns the psql_table String value of the resource’s ResourceDefinition
source§

impl Resource for ResourceObject<Data>

source§

fn get_definition() -> ResourceDefinition

Allows us to implement the resource definition used for simple insert and update queries
source§

fn get_enum_string_val(field: &str, value: i32) -> Option<String>

This function should be implemented for the resources where applicable (example implementation can be found in the flight_plan module).
source§

fn get_table_indices() -> Vec<String>

This function should be implemented for the resources where applicable (example implementation can be found in the flight_plan module).
source§

fn has_id_col(id_col: &str) -> bool

Returns true if the given column name is part of the resource’s combined id
source§

fn get_psql_table() -> String

Returns the psql_table String value of the resource’s ResourceDefinition
source§

impl Resource for ResourceObject<Data>

source§

fn get_enum_string_val(field: &str, value: i32) -> Option<String>

Converts raw i32 values into string based on matching Enum value

source§

fn get_definition() -> ResourceDefinition

Allows us to implement the resource definition used for simple insert and update queries
source§

fn get_table_indices() -> Vec<String>

This function should be implemented for the resources where applicable (example implementation can be found in the flight_plan module).
source§

fn has_id_col(id_col: &str) -> bool

Returns true if the given column name is part of the resource’s combined id
source§

fn get_psql_table() -> String

Returns the psql_table String value of the resource’s ResourceDefinition
source§

impl<T: GrpcDataObjectType + Message> SimpleResource<T> for ResourceObject<T>
where Self: PsqlType,

source§

impl<T: GrpcDataObjectType + Message> LinkedResource<T> for ResourceObject<T>
where Self: PsqlType,

source§

impl<T: GrpcDataObjectType + Message> SimpleResourceLinked<T> for ResourceObject<T>
where Self: PsqlType,

Auto Trait Implementations§

§

impl<T> RefUnwindSafe for ResourceObject<T>
where T: RefUnwindSafe,

§

impl<T> Send for ResourceObject<T>

§

impl<T> Sync for ResourceObject<T>

§

impl<T> Unpin for ResourceObject<T>
where T: Unpin,

§

impl<T> UnwindSafe for ResourceObject<T>
where T: UnwindSafe,

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
§

impl<T> CloneAny for T
where T: Any + Clone + Send + Sync,

§

fn clone_any(&self) -> Box<dyn CloneAny>

§

fn clone_any_send(&self) -> Box<dyn CloneAny + Send>

§

fn clone_any_sync(&self) -> Box<dyn CloneAny + Sync>

§

fn clone_any_send_sync(&self) -> Box<dyn CloneAny + Send + Sync>

source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

§

impl<T> FromRef<T> for T
where T: Clone,

§

fn from_ref(input: &T) -> T

Converts to this type from a reference to the input type.
§

impl<T> Instrument for T

§

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

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

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> IntoRequest<T> for T

source§

fn into_request(self) -> Request<T>

Wrap the input message T in a tonic::Request
source§

impl<T> Same for T

§

type Output = T

Should always be Self
source§

impl<T> ToOwned for T
where T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

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

§

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>,

§

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.
§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

§

fn vzip(self) -> V

§

impl<T> WithSubscriber for T

§

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
§

fn with_current_subscriber(self) -> WithDispatch<Self>

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

impl<T> DebugAny for T
where T: Any + Debug,

§

impl<T> UnsafeAny for T
where T: Any,