pub struct ServiceState {
pub name: String,
pub code: i64,
pub sequence: i64,
pub data: Vec<u8>,
pub _fields: Vec<String>,
}Fields§
§name: String§code: i64§sequence: i64§data: Vec<u8>§_fields: Vec<String>Implementations§
Source§impl ServiceState
impl ServiceState
pub fn fields() -> Vec<String>
pub fn fill(&mut self, cols: &ColumnsMap)
pub fn to(&self) -> ColumnsMap
Source§impl ServiceState
impl ServiceState
pub fn with_pk(name: String, code: i64) -> Self
pub fn from_index(value: &ServiceState) -> Result<Self>
pub fn to_index(&self) -> Result<ServiceState>
pub fn select_fields( select_fields: Vec<String>, with_pk: bool, ) -> Result<Vec<String>>
pub async fn get_one( &mut self, db: &ScyllaDB, select_fields: Vec<String>, ) -> Result<()>
pub async fn list_by_name( db: &ScyllaDB, name: &String, select_fields: Vec<String>, ) -> Result<Vec<Self>>
Trait Implementations§
Source§impl Clone for ServiceState
impl Clone for ServiceState
Source§fn clone(&self) -> ServiceState
fn clone(&self) -> ServiceState
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 Debug for ServiceState
impl Debug for ServiceState
Source§impl Default for ServiceState
impl Default for ServiceState
Source§fn default() -> ServiceState
fn default() -> ServiceState
Returns the “default value” for a type. Read more
Source§impl PartialEq for ServiceState
impl PartialEq for ServiceState
impl StructuralPartialEq for ServiceState
Auto Trait Implementations§
impl Freeze for ServiceState
impl RefUnwindSafe for ServiceState
impl Send for ServiceState
impl Sync for ServiceState
impl Unpin for ServiceState
impl UnwindSafe for ServiceState
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more