Struct svc_storage::resources::base::ResourceObject
source · pub struct ResourceObject<T>where
T: GrpcDataObjectType + Message,{
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>
impl<T> Clone for ResourceObject<T>
source§fn clone(&self) -> ResourceObject<T>
fn clone(&self) -> ResourceObject<T>
Returns a copy 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<T> Debug for ResourceObject<T>
impl<T> Debug for ResourceObject<T>
source§impl<T> From<Id> for ResourceObject<T>
impl<T> From<Id> for ResourceObject<T>
source§impl<T> From<Ids> for ResourceObject<T>
impl<T> From<Ids> for ResourceObject<T>
source§impl From<ResourceObject<Data>> for Object
impl From<ResourceObject<Data>> for Object
source§fn from(obj: ResourceObject<Data>) -> Self
fn from(obj: ResourceObject<Data>) -> Self
Converts to this type from the input type.
source§impl From<ResourceObject<Data>> for Object
impl From<ResourceObject<Data>> for Object
source§fn from(obj: ResourceObject<Data>) -> Self
fn from(obj: ResourceObject<Data>) -> Self
Converts to this type from the input type.
source§impl From<ResourceObject<Data>> for Object
impl From<ResourceObject<Data>> for Object
source§fn from(obj: ResourceObject<Data>) -> Self
fn from(obj: ResourceObject<Data>) -> Self
Converts to this type from the input type.
source§impl From<ResourceObject<Data>> for Object
impl From<ResourceObject<Data>> for Object
source§fn from(obj: ResourceObject<Data>) -> Self
fn from(obj: ResourceObject<Data>) -> Self
Converts to this type from the input type.
source§impl From<ResourceObject<Data>> for Object
impl From<ResourceObject<Data>> for Object
source§fn from(obj: ResourceObject<Data>) -> Self
fn from(obj: ResourceObject<Data>) -> Self
Converts to this type from the input type.
source§impl From<ResourceObject<Data>> for Object
impl From<ResourceObject<Data>> for Object
source§fn from(obj: ResourceObject<Data>) -> Self
fn from(obj: ResourceObject<Data>) -> Self
Converts to this type from the input type.
source§impl From<ResourceObject<Data>> for Object
impl From<ResourceObject<Data>> for Object
source§fn from(obj: ResourceObject<Data>) -> Self
fn from(obj: ResourceObject<Data>) -> Self
Converts to this type from the input type.
source§impl From<ResourceObject<Data>> for Object
impl From<ResourceObject<Data>> for Object
source§fn from(obj: ResourceObject<Data>) -> Self
fn from(obj: ResourceObject<Data>) -> Self
Converts to this type from the input type.
source§impl From<ResourceObject<Data>> for Object
impl From<ResourceObject<Data>> for Object
source§fn from(obj: ResourceObject<Data>) -> Self
fn from(obj: ResourceObject<Data>) -> Self
Converts to this type from the input type.
source§impl From<ResourceObject<Data>> for Object
impl From<ResourceObject<Data>> for Object
source§fn from(obj: ResourceObject<Data>) -> Self
fn from(obj: ResourceObject<Data>) -> Self
Converts to this type from the input type.
source§impl From<ResourceObject<Data>> for Object
impl From<ResourceObject<Data>> for Object
source§fn from(obj: ResourceObject<Data>) -> Self
fn from(obj: ResourceObject<Data>) -> Self
Converts to this type from the input type.
source§impl From<ResourceObject<Data>> for Object
impl From<ResourceObject<Data>> for Object
source§fn from(obj: ResourceObject<Data>) -> Self
fn from(obj: ResourceObject<Data>) -> Self
Converts to this type from the input type.
source§impl From<ResourceObject<Data>> for Object
impl From<ResourceObject<Data>> for Object
source§fn from(obj: ResourceObject<Data>) -> Self
fn from(obj: ResourceObject<Data>) -> Self
Converts to this type from the input type.
source§impl<T> From<T> for ResourceObject<T>
impl<T> From<T> for ResourceObject<T>
source§impl From<UpdateObject> for ResourceObject<Data>
impl From<UpdateObject> for ResourceObject<Data>
source§fn from(obj: UpdateObject) -> Self
fn from(obj: UpdateObject) -> Self
Converts to this type from the input type.
source§impl From<UpdateObject> for ResourceObject<Data>
impl From<UpdateObject> for ResourceObject<Data>
source§fn from(obj: UpdateObject) -> Self
fn from(obj: UpdateObject) -> Self
Converts to this type from the input type.
source§impl From<UpdateObject> for ResourceObject<Data>
impl From<UpdateObject> for ResourceObject<Data>
source§fn from(obj: UpdateObject) -> Self
fn from(obj: UpdateObject) -> Self
Converts to this type from the input type.
source§impl From<UpdateObject> for ResourceObject<Data>
impl From<UpdateObject> for ResourceObject<Data>
source§fn from(obj: UpdateObject) -> Self
fn from(obj: UpdateObject) -> Self
Converts to this type from the input type.
source§impl From<UpdateObject> for ResourceObject<Data>
impl From<UpdateObject> for ResourceObject<Data>
source§fn from(obj: UpdateObject) -> Self
fn from(obj: UpdateObject) -> Self
Converts to this type from the input type.
source§impl From<UpdateObject> for ResourceObject<Data>
impl From<UpdateObject> for ResourceObject<Data>
source§fn from(obj: UpdateObject) -> Self
fn from(obj: UpdateObject) -> Self
Converts to this type from the input type.
source§impl From<UpdateObject> for ResourceObject<Data>
impl From<UpdateObject> for ResourceObject<Data>
source§fn from(obj: UpdateObject) -> Self
fn from(obj: UpdateObject) -> Self
Converts to this type from the input type.
source§impl From<UpdateObject> for ResourceObject<Data>
impl From<UpdateObject> for ResourceObject<Data>
source§fn from(obj: UpdateObject) -> Self
fn from(obj: UpdateObject) -> Self
Converts to this type from the input type.
source§impl From<UpdateObject> for ResourceObject<Data>
impl From<UpdateObject> for ResourceObject<Data>
source§fn from(obj: UpdateObject) -> Self
fn from(obj: UpdateObject) -> Self
Converts to this type from the input type.
source§impl From<UpdateObject> for ResourceObject<Data>
impl From<UpdateObject> for ResourceObject<Data>
source§fn from(obj: UpdateObject) -> Self
fn from(obj: UpdateObject) -> Self
Converts to this type from the input type.
source§impl From<UpdateObject> for ResourceObject<Data>
impl From<UpdateObject> for ResourceObject<Data>
source§fn from(obj: UpdateObject) -> Self
fn from(obj: UpdateObject) -> Self
Converts to this type from the input type.
source§impl From<UpdateObject> for ResourceObject<Data>
impl From<UpdateObject> for ResourceObject<Data>
source§fn from(obj: UpdateObject) -> Self
fn from(obj: UpdateObject) -> Self
Converts to this type from the input type.
source§impl From<UpdateObject> for ResourceObject<Data>
impl From<UpdateObject> for ResourceObject<Data>
source§fn from(obj: UpdateObject) -> Self
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,
impl<T: GrpcDataObjectType + Message> ObjectType<T> for ResourceObject<T>where
Self: Resource,
source§fn get_ids(&self) -> Option<HashMap<String, String>>
fn get_ids(&self) -> Option<HashMap<String, String>>
Get
ObjectType<T>
’s ids
field, to be implemented by trait implementorsource§fn set_ids(&mut self, ids: HashMap<String, String>)
fn set_ids(&mut self, ids: HashMap<String, String>)
Set
ObjectType<T>
’s ids
field, to be implemented by trait implementorsource§fn get_data(&self) -> Option<T>
fn get_data(&self) -> Option<T>
Get
ObjectType<T>
’s data
field, to be implemented by trait implementorsource§fn set_data(&mut self, data: T)
fn set_data(&mut self, data: T)
Set
ObjectType<T>
’s data
field, to be implemented by trait implementorsource§fn try_get_data(&self) -> Result<T, ArrErr>
fn try_get_data(&self) -> Result<T, ArrErr>
source§impl PsqlInitLinkedResource for ResourceObject<Data>
impl PsqlInitLinkedResource for ResourceObject<Data>
source§fn _get_create_table_query() -> String
fn _get_create_table_query() -> String
Constructs the create table query for the resource
for internal use
source§impl PsqlInitLinkedResource for ResourceObject<Data>
impl PsqlInitLinkedResource for ResourceObject<Data>
source§fn _get_create_table_query() -> String
fn _get_create_table_query() -> String
Constructs the create table query for the resource
for internal use
source§impl PsqlInitLinkedResource for ResourceObject<Data>
impl PsqlInitLinkedResource for ResourceObject<Data>
source§fn _get_create_table_query() -> String
fn _get_create_table_query() -> String
Constructs the create table query for the resource
for internal use
source§impl PsqlInitLinkedResource for ResourceObject<Data>
impl PsqlInitLinkedResource for ResourceObject<Data>
source§fn _get_create_table_query() -> String
fn _get_create_table_query() -> String
Constructs the create table query for the resource
for internal use
source§impl PsqlInitLinkedResource for ResourceObject<Data>
impl PsqlInitLinkedResource for ResourceObject<Data>
source§fn _get_create_table_query() -> String
fn _get_create_table_query() -> String
Constructs the create table query for the resource
for internal use
source§impl PsqlInitLinkedResource for ResourceObject<Data>
impl PsqlInitLinkedResource for ResourceObject<Data>
source§fn _get_create_table_query() -> String
fn _get_create_table_query() -> String
Constructs the create table query for the resource
for internal use
source§impl PsqlInitResource for ResourceObject<Data>
impl PsqlInitResource for ResourceObject<Data>
source§fn _get_create_table_query() -> String
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,
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§impl PsqlInitResource for ResourceObject<Data>
impl PsqlInitResource for ResourceObject<Data>
source§fn _get_create_table_query() -> String
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,
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§impl PsqlInitResource for ResourceObject<Data>
impl PsqlInitResource for ResourceObject<Data>
source§fn _get_create_table_query() -> String
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,
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§impl PsqlInitResource for ResourceObject<Data>
impl PsqlInitResource for ResourceObject<Data>
source§fn _get_create_table_query() -> String
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,
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§impl PsqlInitResource for ResourceObject<Data>
impl PsqlInitResource for ResourceObject<Data>
source§fn _get_create_table_query() -> String
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,
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§impl PsqlInitResource for ResourceObject<Data>
impl PsqlInitResource for ResourceObject<Data>
source§fn _get_create_table_query() -> String
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,
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§impl PsqlInitResource for ResourceObject<Data>
impl PsqlInitResource for ResourceObject<Data>
source§fn _get_create_table_query() -> String
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,
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§impl PsqlInitResource for ResourceObject<Data>
impl PsqlInitResource for ResourceObject<Data>
source§fn _get_create_table_query() -> String
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,
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§impl PsqlInitResource for ResourceObject<Data>
impl PsqlInitResource for ResourceObject<Data>
source§fn _get_create_table_query() -> String
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,
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§impl PsqlInitResource for ResourceObject<Data>
impl PsqlInitResource for ResourceObject<Data>
source§fn _get_create_table_query() -> String
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,
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§impl PsqlInitResource for ResourceObject<Data>
impl PsqlInitResource for ResourceObject<Data>
source§fn _get_create_table_query() -> String
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,
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§impl PsqlInitResource for ResourceObject<Data>
impl PsqlInitResource for ResourceObject<Data>
source§fn _get_create_table_query() -> String
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,
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§impl PsqlInitResource for ResourceObject<Data>
impl PsqlInitResource for ResourceObject<Data>
source§fn _get_create_table_query() -> String
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,
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§impl PsqlInitResource for ResourceObject<Data>
impl PsqlInitResource for ResourceObject<Data>
source§fn _get_create_table_query() -> String
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,
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§impl PsqlInitResource for ResourceObject<Data>
impl PsqlInitResource for ResourceObject<Data>
source§fn _get_create_table_query() -> String
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,
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§impl PsqlInitResource for ResourceObject<Data>
impl PsqlInitResource for ResourceObject<Data>
source§fn _get_create_table_query() -> String
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,
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§impl PsqlInitResource for ResourceObject<Data>
impl PsqlInitResource for ResourceObject<Data>
source§fn _get_create_table_query() -> String
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,
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§impl PsqlInitResource for ResourceObject<Data>
impl PsqlInitResource for ResourceObject<Data>
source§fn _get_create_table_query() -> String
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,
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§impl PsqlInitSimpleResource for ResourceObject<Data>
impl PsqlInitSimpleResource for ResourceObject<Data>
source§fn _get_create_table_query() -> String
fn _get_create_table_query() -> String
Constructs the create table query for the resource
for internal use
source§impl PsqlInitSimpleResource for ResourceObject<Data>
impl PsqlInitSimpleResource for ResourceObject<Data>
source§fn _get_create_table_query() -> String
fn _get_create_table_query() -> String
Constructs the create table query for the resource
for internal use
source§impl PsqlInitSimpleResource for ResourceObject<Data>
impl PsqlInitSimpleResource for ResourceObject<Data>
source§fn _get_create_table_query() -> String
fn _get_create_table_query() -> String
Constructs the create table query for the resource
for internal use
source§impl PsqlInitSimpleResource for ResourceObject<Data>
impl PsqlInitSimpleResource for ResourceObject<Data>
source§fn _get_create_table_query() -> String
fn _get_create_table_query() -> String
Constructs the create table query for the resource
for internal use
source§impl PsqlInitSimpleResource for ResourceObject<Data>
impl PsqlInitSimpleResource for ResourceObject<Data>
source§fn _get_create_table_query() -> String
fn _get_create_table_query() -> String
Constructs the create table query for the resource
for internal use
source§impl PsqlInitSimpleResource for ResourceObject<Data>
impl PsqlInitSimpleResource for ResourceObject<Data>
source§fn _get_create_table_query() -> String
fn _get_create_table_query() -> String
Constructs the create table query for the resource
for internal use
source§impl PsqlInitSimpleResource for ResourceObject<Data>
impl PsqlInitSimpleResource for ResourceObject<Data>
source§fn _get_create_table_query() -> String
fn _get_create_table_query() -> String
Constructs the create table query for the resource
for internal use
source§impl PsqlInitSimpleResource for ResourceObject<Data>
impl PsqlInitSimpleResource for ResourceObject<Data>
source§fn _get_create_table_query() -> String
fn _get_create_table_query() -> String
Constructs the create table query for the resource
for internal use
source§impl PsqlInitSimpleResource for ResourceObject<Data>
impl PsqlInitSimpleResource for ResourceObject<Data>
source§fn _get_create_table_query() -> String
fn _get_create_table_query() -> String
Constructs the create table query for the resource
for internal use
source§impl PsqlInitSimpleResource for ResourceObject<Data>
impl PsqlInitSimpleResource for ResourceObject<Data>
source§fn _get_create_table_query() -> String
fn _get_create_table_query() -> String
Constructs the create table query for the resource
for internal use
source§impl PsqlInitSimpleResource for ResourceObject<Data>
impl PsqlInitSimpleResource for ResourceObject<Data>
source§fn _get_create_table_query() -> String
fn _get_create_table_query() -> String
Constructs the create table query for the resource
for internal use
source§impl PsqlInitSimpleResource for ResourceObject<Data>
impl PsqlInitSimpleResource for ResourceObject<Data>
source§fn _get_create_table_query() -> String
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,
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,
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,
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,
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,
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,
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,
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,
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 moresource§impl<T: GrpcDataObjectType> PsqlObjectType<T> for ResourceObject<T>where
Self: ObjectType<T>,
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,
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,
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,
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,
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,
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,
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,
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 moresource§impl<T: GrpcDataObjectType> PsqlObjectType<T> for ResourceObject<T>where
Self: ObjectType<T> + Resource,
impl<T: GrpcDataObjectType> PsqlObjectType<T> for ResourceObject<T>where
Self: ObjectType<T> + Resource,
source§impl PsqlSearch for ResourceObject<Data>
impl PsqlSearch for ResourceObject<Data>
source§impl PsqlSearch for ResourceObject<Data>
impl PsqlSearch for ResourceObject<Data>
source§impl PsqlSearch for ResourceObject<Data>
impl PsqlSearch for ResourceObject<Data>
source§impl PsqlSearch for ResourceObject<Data>
impl PsqlSearch for ResourceObject<Data>
source§impl PsqlSearch for ResourceObject<Data>
impl PsqlSearch for ResourceObject<Data>
source§impl PsqlSearch for ResourceObject<Data>
impl PsqlSearch for ResourceObject<Data>
source§impl PsqlSearch for ResourceObject<Data>
impl PsqlSearch for ResourceObject<Data>
source§impl PsqlSearch for ResourceObject<Data>
impl PsqlSearch for ResourceObject<Data>
source§impl PsqlSearch for ResourceObject<Data>
impl PsqlSearch for ResourceObject<Data>
source§impl PsqlSearch for ResourceObject<Data>
impl PsqlSearch for ResourceObject<Data>
source§impl PsqlSearch for ResourceObject<Data>
impl PsqlSearch for ResourceObject<Data>
source§impl PsqlSearch for ResourceObject<Data>
impl PsqlSearch for ResourceObject<Data>
source§impl PsqlSearch for ResourceObject<Data>
impl PsqlSearch for ResourceObject<Data>
source§impl PsqlSearch for ResourceObject<Data>
impl PsqlSearch for ResourceObject<Data>
source§impl PsqlSearch for ResourceObject<Data>
impl PsqlSearch for ResourceObject<Data>
source§impl PsqlSearch for ResourceObject<Data>
impl PsqlSearch for ResourceObject<Data>
source§impl PsqlSearch for ResourceObject<Data>
impl PsqlSearch for ResourceObject<Data>
source§impl PsqlSearch for ResourceObject<Data>
impl PsqlSearch for ResourceObject<Data>
source§impl<T: GrpcDataObjectType> PsqlType for ResourceObject<T>where
Self: ObjectType<T> + Resource,
impl<T: GrpcDataObjectType> PsqlType for ResourceObject<T>where
Self: ObjectType<T> + Resource,
source§fn try_get_id_field() -> Result<String, ArrErr>
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,
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,
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,
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,
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,
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 link_ids<'async_trait>(
ids: Vec<HashMap<String, Uuid>>,
replace: HashMap<String, Uuid>
) -> Pin<Box<dyn Future<Output = Result<(), ArrErr>> + Send + 'async_trait>>where
Self: Send + 'async_trait,
fn link_ids<'async_trait>(
ids: Vec<HashMap<String, Uuid>>,
replace: HashMap<String, Uuid>
) -> Pin<Box<dyn Future<Output = Result<(), ArrErr>> + Send + 'async_trait>>where
Self: Send + 'async_trait,
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,
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,
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,
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,
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>
impl Resource for ResourceObject<Data>
source§fn get_definition() -> ResourceDefinition
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>
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>
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
fn has_id_col(id_col: &str) -> bool
Returns
true
if the given column name is part of the resource’s combined idsource§fn get_psql_table() -> String
fn get_psql_table() -> String
source§impl Resource for ResourceObject<Data>
impl Resource for ResourceObject<Data>
source§fn get_enum_string_val(field: &str, value: i32) -> Option<String>
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
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>
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
fn has_id_col(id_col: &str) -> bool
Returns
true
if the given column name is part of the resource’s combined idsource§fn get_psql_table() -> String
fn get_psql_table() -> String
source§impl Resource for ResourceObject<Data>
impl Resource for ResourceObject<Data>
source§fn get_definition() -> ResourceDefinition
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>
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>
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
fn has_id_col(id_col: &str) -> bool
Returns
true
if the given column name is part of the resource’s combined idsource§fn get_psql_table() -> String
fn get_psql_table() -> String
source§impl Resource for ResourceObject<Data>
impl Resource for ResourceObject<Data>
source§fn get_enum_string_val(field: &str, value: i32) -> Option<String>
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
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>
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
fn has_id_col(id_col: &str) -> bool
Returns
true
if the given column name is part of the resource’s combined idsource§fn get_psql_table() -> String
fn get_psql_table() -> String
source§impl Resource for ResourceObject<Data>
impl Resource for ResourceObject<Data>
source§fn get_definition() -> ResourceDefinition
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>
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>
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
fn has_id_col(id_col: &str) -> bool
Returns
true
if the given column name is part of the resource’s combined idsource§fn get_psql_table() -> String
fn get_psql_table() -> String
source§impl Resource for ResourceObject<Data>
impl Resource for ResourceObject<Data>
source§fn get_definition() -> ResourceDefinition
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>
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>
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
fn has_id_col(id_col: &str) -> bool
Returns
true
if the given column name is part of the resource’s combined idsource§fn get_psql_table() -> String
fn get_psql_table() -> String
source§impl Resource for ResourceObject<Data>
impl Resource for ResourceObject<Data>
source§fn get_definition() -> ResourceDefinition
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>
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>
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
fn has_id_col(id_col: &str) -> bool
Returns
true
if the given column name is part of the resource’s combined idsource§fn get_psql_table() -> String
fn get_psql_table() -> String
source§impl Resource for ResourceObject<Data>
impl Resource for ResourceObject<Data>
source§fn get_enum_string_val(field: &str, value: i32) -> Option<String>
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
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>
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
fn has_id_col(id_col: &str) -> bool
Returns
true
if the given column name is part of the resource’s combined idsource§fn get_psql_table() -> String
fn get_psql_table() -> String
source§impl Resource for ResourceObject<Data>
impl Resource for ResourceObject<Data>
source§fn get_enum_string_val(field: &str, value: i32) -> Option<String>
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
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>
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
fn has_id_col(id_col: &str) -> bool
Returns
true
if the given column name is part of the resource’s combined idsource§fn get_psql_table() -> String
fn get_psql_table() -> String
source§impl Resource for ResourceObject<Data>
impl Resource for ResourceObject<Data>
source§fn get_definition() -> ResourceDefinition
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>
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>
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
fn has_id_col(id_col: &str) -> bool
Returns
true
if the given column name is part of the resource’s combined idsource§fn get_psql_table() -> String
fn get_psql_table() -> String
source§impl Resource for ResourceObject<Data>
impl Resource for ResourceObject<Data>
source§fn get_definition() -> ResourceDefinition
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>
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>
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
fn has_id_col(id_col: &str) -> bool
Returns
true
if the given column name is part of the resource’s combined idsource§fn get_psql_table() -> String
fn get_psql_table() -> String
source§impl Resource for ResourceObject<Data>
impl Resource for ResourceObject<Data>
source§fn get_definition() -> ResourceDefinition
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>
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>
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
fn has_id_col(id_col: &str) -> bool
Returns
true
if the given column name is part of the resource’s combined idsource§fn get_psql_table() -> String
fn get_psql_table() -> String
source§impl Resource for ResourceObject<Data>
impl Resource for ResourceObject<Data>
source§fn get_enum_string_val(field: &str, value: i32) -> Option<String>
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
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>
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
fn has_id_col(id_col: &str) -> bool
Returns
true
if the given column name is part of the resource’s combined idsource§fn get_psql_table() -> String
fn get_psql_table() -> String
source§impl Resource for ResourceObject<Data>
impl Resource for ResourceObject<Data>
source§fn get_definition() -> ResourceDefinition
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>
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>
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
fn has_id_col(id_col: &str) -> bool
Returns
true
if the given column name is part of the resource’s combined idsource§fn get_psql_table() -> String
fn get_psql_table() -> String
source§impl Resource for ResourceObject<Data>
impl Resource for ResourceObject<Data>
source§fn get_definition() -> ResourceDefinition
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>
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>
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
fn has_id_col(id_col: &str) -> bool
Returns
true
if the given column name is part of the resource’s combined idsource§fn get_psql_table() -> String
fn get_psql_table() -> String
source§impl Resource for ResourceObject<Data>
impl Resource for ResourceObject<Data>
source§fn get_definition() -> ResourceDefinition
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>
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>
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
fn has_id_col(id_col: &str) -> bool
Returns
true
if the given column name is part of the resource’s combined idsource§fn get_psql_table() -> String
fn get_psql_table() -> String
source§impl Resource for ResourceObject<Data>
impl Resource for ResourceObject<Data>
source§fn get_definition() -> ResourceDefinition
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>
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>
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
fn has_id_col(id_col: &str) -> bool
Returns
true
if the given column name is part of the resource’s combined idsource§fn get_psql_table() -> String
fn get_psql_table() -> String
source§impl Resource for ResourceObject<Data>
impl Resource for ResourceObject<Data>
source§fn get_enum_string_val(field: &str, value: i32) -> Option<String>
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
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>
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
fn has_id_col(id_col: &str) -> bool
Returns
true
if the given column name is part of the resource’s combined idsource§fn get_psql_table() -> String
fn get_psql_table() -> String
source§impl<T: GrpcDataObjectType + Message> SimpleResource<T> for ResourceObject<T>where
Self: PsqlType,
impl<T: GrpcDataObjectType + Message> SimpleResource<T> for ResourceObject<T>where
Self: PsqlType,
impl<T: GrpcDataObjectType + Message> LinkedResource<T> for ResourceObject<T>where
Self: PsqlType,
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> 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
§impl<T> CloneAny for T
impl<T> CloneAny for T
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§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>
Wrap the input message
T
in a tonic::Request