pub struct SegmentKey {
pub table_name: String,
pub partition: HashMap<String, PartitionFieldValue>,
pub segment_id: String,
}
Expand description
§PancakeDB Client
The PancakeDB client supports
- the full PancakeDB API via GRPC,
- helper macros to build requests more easily,
- and higher-level functionality for reads.
Most users will primarily use the client library for writing data with
write_to_partition
requests and occasionally use it for table creation,
alteration, and deletion.
§Get Started
For basic usage and detailed explanations, see the docs.rs page.
For a complete example, see the runthrough.
For details about the API calls and what all their fields mean, see the API docs. A fully-specified segment.
Consists of a table name, partition, and segment ID. Used in certain high-level client functionality.
Fields§
§table_name: String
§partition: HashMap<String, PartitionFieldValue>
§segment_id: String
Trait Implementations§
Source§impl Clone for SegmentKey
impl Clone for SegmentKey
Source§fn clone(&self) -> SegmentKey
fn clone(&self) -> SegmentKey
Returns a duplicate 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 SegmentKey
impl Debug for SegmentKey
Source§impl Default for SegmentKey
impl Default for SegmentKey
Source§fn default() -> SegmentKey
fn default() -> SegmentKey
Returns the “default value” for a type. Read more
Source§impl PartialEq for SegmentKey
impl PartialEq for SegmentKey
impl StructuralPartialEq for SegmentKey
Auto Trait Implementations§
impl Freeze for SegmentKey
impl RefUnwindSafe for SegmentKey
impl Send for SegmentKey
impl Sync for SegmentKey
impl Unpin for SegmentKey
impl UnwindSafe for SegmentKey
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> 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