pub struct ServiceProtocol {
pub code: i64,
pub version: i32,
pub protocol: Vec<u8>,
pub submitter: String,
pub sequence: i64,
pub _fields: Vec<String>,
}Fields§
§code: i64§version: i32§protocol: Vec<u8>§submitter: String§sequence: i64§_fields: Vec<String>Implementations§
Source§impl ServiceProtocol
impl ServiceProtocol
pub fn fields() -> Vec<String>
pub fn fill(&mut self, cols: &ColumnsMap)
pub fn to(&self) -> ColumnsMap
Source§impl ServiceProtocol
impl ServiceProtocol
pub fn with_pk(code: i64, version: i32) -> Self
pub fn from_index(value: &ServiceProtocol) -> Result<Self>
pub fn to_index(&self) -> Result<ServiceProtocol>
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 get_latest( db: &ScyllaDB, code: i64, select_fields: Vec<String>, ) -> Result<Self>
Trait Implementations§
Source§impl Clone for ServiceProtocol
impl Clone for ServiceProtocol
Source§fn clone(&self) -> ServiceProtocol
fn clone(&self) -> ServiceProtocol
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 ServiceProtocol
impl Debug for ServiceProtocol
Source§impl Default for ServiceProtocol
impl Default for ServiceProtocol
Source§fn default() -> ServiceProtocol
fn default() -> ServiceProtocol
Returns the “default value” for a type. Read more
Source§impl PartialEq for ServiceProtocol
impl PartialEq for ServiceProtocol
impl StructuralPartialEq for ServiceProtocol
Auto Trait Implementations§
impl Freeze for ServiceProtocol
impl RefUnwindSafe for ServiceProtocol
impl Send for ServiceProtocol
impl Sync for ServiceProtocol
impl Unpin for ServiceProtocol
impl UnwindSafe for ServiceProtocol
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