pub struct Method(/* private fields */);Expand description
The Request Method (VERB)
This type also contains constants for a number of common HTTP methods such as GET, POST, etc.
Currently includes 8 variants representing the 8 methods defined in RFC 7230, plus PATCH, and an Extension variant for all extensions.
§Examples
use http::Method;
assert_eq!(Method::GET, Method::from_bytes(b"GET").unwrap());
assert!(Method::GET.is_idempotent());
assert_eq!(Method::POST.as_str(), "POST");Implementations§
Source§impl Method
impl Method
Sourcepub fn from_bytes(src: &[u8]) -> Result<Method, InvalidMethod>
pub fn from_bytes(src: &[u8]) -> Result<Method, InvalidMethod>
Converts a slice of bytes to an HTTP method.
Sourcepub fn is_safe(&self) -> bool
pub fn is_safe(&self) -> bool
Whether a method is considered “safe”, meaning the request is essentially read-only.
See the spec for more words.
Sourcepub fn is_idempotent(&self) -> bool
pub fn is_idempotent(&self) -> bool
Whether a method is considered “idempotent”, meaning the request has the same result if executed multiple times.
See the spec for more words.
Trait Implementations§
impl Eq for Method
impl StructuralPartialEq for Method
Auto Trait Implementations§
impl Freeze for Method
impl RefUnwindSafe for Method
impl Send for Method
impl Sync for Method
impl Unpin for Method
impl UnwindSafe for Method
Blanket Implementations§
Source§impl<S> Batchable for S
impl<S> Batchable for S
Source§fn batch(&self) -> BatchCollector<'_, Self, BatchTypeUnset, BatchType>
fn batch(&self) -> BatchCollector<'_, Self, BatchTypeUnset, BatchType>
Start building a batch.
This function will borrow the keyspace until the batch is fully built in order
to access its trait definitions.
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<E, T, const C: usize> ChannelBuilder<AbortableBoundedChannel<E, C>> for T
impl<E, T, const C: usize> ChannelBuilder<AbortableBoundedChannel<E, C>> for T
Source§fn build_channel<'life0, 'async_trait>(
&'life0 mut self,
) -> Pin<Box<dyn Future<Output = Result<AbortableBoundedChannel<E, C>, ActorError>> + Send + 'async_trait>>where
'life0: 'async_trait,
T: 'async_trait,
fn build_channel<'life0, 'async_trait>(
&'life0 mut self,
) -> Pin<Box<dyn Future<Output = Result<AbortableBoundedChannel<E, C>, ActorError>> + Send + 'async_trait>>where
'life0: 'async_trait,
T: 'async_trait,
Implement how to build the channel for the corresponding actor
Source§impl<E, T> ChannelBuilder<AbortableUnboundedChannel<E>> for T
impl<E, T> ChannelBuilder<AbortableUnboundedChannel<E>> for T
Source§fn build_channel<'life0, 'async_trait>(
&'life0 mut self,
) -> Pin<Box<dyn Future<Output = Result<AbortableUnboundedChannel<E>, ActorError>> + Send + 'async_trait>>where
'life0: 'async_trait,
T: 'async_trait,
fn build_channel<'life0, 'async_trait>(
&'life0 mut self,
) -> Pin<Box<dyn Future<Output = Result<AbortableUnboundedChannel<E>, ActorError>> + Send + 'async_trait>>where
'life0: 'async_trait,
T: 'async_trait,
Implement how to build the channel for the corresponding actor
Source§impl<E, T, const C: usize> ChannelBuilder<BoundedChannel<E, C>> for Twhere
E: ShutdownEvent + 'static,
T: Send,
impl<E, T, const C: usize> ChannelBuilder<BoundedChannel<E, C>> for Twhere
E: ShutdownEvent + 'static,
T: Send,
Source§fn build_channel<'life0, 'async_trait>(
&'life0 mut self,
) -> Pin<Box<dyn Future<Output = Result<BoundedChannel<E, C>, ActorError>> + Send + 'async_trait>>where
'life0: 'async_trait,
T: 'async_trait,
fn build_channel<'life0, 'async_trait>(
&'life0 mut self,
) -> Pin<Box<dyn Future<Output = Result<BoundedChannel<E, C>, ActorError>> + Send + 'async_trait>>where
'life0: 'async_trait,
T: 'async_trait,
Implement how to build the channel for the corresponding actor
Source§impl<T, const I: u64> ChannelBuilder<IntervalChannel<I>> for Twhere
T: Send,
impl<T, const I: u64> ChannelBuilder<IntervalChannel<I>> for Twhere
T: Send,
Source§fn build_channel<'life0, 'async_trait>(
&'life0 mut self,
) -> Pin<Box<dyn Future<Output = Result<IntervalChannel<I>, ActorError>> + Send + 'async_trait>>where
'life0: 'async_trait,
T: 'async_trait,
fn build_channel<'life0, 'async_trait>(
&'life0 mut self,
) -> Pin<Box<dyn Future<Output = Result<IntervalChannel<I>, ActorError>> + Send + 'async_trait>>where
'life0: 'async_trait,
T: 'async_trait,
Implement how to build the channel for the corresponding actor
Source§impl<T, C, B> ChannelBuilder<Marker<C, B>> for T
impl<T, C, B> ChannelBuilder<Marker<C, B>> for T
Source§fn build_channel<'life0, 'async_trait>(
&'life0 mut self,
) -> Pin<Box<dyn Future<Output = Result<Marker<C, B>, ActorError>> + Send + 'async_trait>>where
'life0: 'async_trait,
T: 'async_trait,
fn build_channel<'life0, 'async_trait>(
&'life0 mut self,
) -> Pin<Box<dyn Future<Output = Result<Marker<C, B>, ActorError>> + Send + 'async_trait>>where
'life0: 'async_trait,
T: 'async_trait,
Implement how to build the channel for the corresponding actor
Source§impl<T> ChannelBuilder<NullChannel> for Twhere
T: Send,
impl<T> ChannelBuilder<NullChannel> for Twhere
T: Send,
Source§fn build_channel<'life0, 'async_trait>(
&'life0 mut self,
) -> Pin<Box<dyn Future<Output = Result<NullChannel, ActorError>> + Send + 'async_trait>>where
'life0: 'async_trait,
T: 'async_trait,
fn build_channel<'life0, 'async_trait>(
&'life0 mut self,
) -> Pin<Box<dyn Future<Output = Result<NullChannel, ActorError>> + Send + 'async_trait>>where
'life0: 'async_trait,
T: 'async_trait,
Implement how to build the channel for the corresponding actor
Source§impl<E, T> ChannelBuilder<UnboundedChannel<E>> for Twhere
E: ShutdownEvent + 'static,
T: Send,
impl<E, T> ChannelBuilder<UnboundedChannel<E>> for Twhere
E: ShutdownEvent + 'static,
T: Send,
Source§fn build_channel<'life0, 'async_trait>(
&'life0 mut self,
) -> Pin<Box<dyn Future<Output = Result<UnboundedChannel<E>, ActorError>> + Send + 'async_trait>>where
'life0: 'async_trait,
T: 'async_trait,
fn build_channel<'life0, 'async_trait>(
&'life0 mut self,
) -> Pin<Box<dyn Future<Output = Result<UnboundedChannel<E>, ActorError>> + Send + 'async_trait>>where
'life0: 'async_trait,
T: 'async_trait,
Implement how to build the channel for the corresponding actor
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<S> GetDynamicDeleteRequest for Swhere
S: Keyspace,
impl<S> GetDynamicDeleteRequest for Swhere
S: Keyspace,
Source§fn delete_with<'a>(
&'a self,
statement: DeleteStatement,
key: &'a [&dyn BindableToken<QueryBuilder<QueryValues>>],
variables: &'a [&dyn BindableValue<QueryBuilder<QueryValues>>],
statement_type: StatementType,
) -> DeleteBuilder<'a, Self, [&'a dyn BindableToken<QueryBuilder<QueryValues>>], [&'a dyn BindableValue<QueryBuilder<QueryValues>>], (), QueryConsistency, DynamicRequest>
fn delete_with<'a>( &'a self, statement: DeleteStatement, key: &'a [&dyn BindableToken<QueryBuilder<QueryValues>>], variables: &'a [&dyn BindableValue<QueryBuilder<QueryValues>>], statement_type: StatementType, ) -> DeleteBuilder<'a, Self, [&'a dyn BindableToken<QueryBuilder<QueryValues>>], [&'a dyn BindableValue<QueryBuilder<QueryValues>>], (), QueryConsistency, DynamicRequest>
Create a dynamic delete request from a statement and variables. Can be specified as either
a query or prepared statement. The token
{{keyspace}} will be replaced with the keyspace name. Read moreSource§fn delete_query_with<'a>(
&'a self,
statement: DeleteStatement,
key: &'a [&dyn BindableToken<QueryBuilder<QueryValues>>],
variables: &'a [&dyn BindableValue<QueryBuilder<QueryValues>>],
) -> DeleteBuilder<'a, Self, [&'a dyn BindableToken<QueryBuilder<QueryValues>>], [&'a dyn BindableValue<QueryBuilder<QueryValues>>], (), QueryConsistency, DynamicRequest>
fn delete_query_with<'a>( &'a self, statement: DeleteStatement, key: &'a [&dyn BindableToken<QueryBuilder<QueryValues>>], variables: &'a [&dyn BindableValue<QueryBuilder<QueryValues>>], ) -> DeleteBuilder<'a, Self, [&'a dyn BindableToken<QueryBuilder<QueryValues>>], [&'a dyn BindableValue<QueryBuilder<QueryValues>>], (), QueryConsistency, DynamicRequest>
Create a dynamic query delete request from a statement and variables.
The token
{{keyspace}} will be replaced with the keyspace name. Read moreSource§fn delete_prepared_with<'a>(
&'a self,
statement: DeleteStatement,
key: &'a [&dyn BindableToken<QueryBuilder<QueryValues>>],
variables: &'a [&dyn BindableValue<QueryBuilder<QueryValues>>],
) -> DeleteBuilder<'a, Self, [&'a dyn BindableToken<QueryBuilder<QueryValues>>], [&'a dyn BindableValue<QueryBuilder<QueryValues>>], (), QueryConsistency, DynamicRequest>
fn delete_prepared_with<'a>( &'a self, statement: DeleteStatement, key: &'a [&dyn BindableToken<QueryBuilder<QueryValues>>], variables: &'a [&dyn BindableValue<QueryBuilder<QueryValues>>], ) -> DeleteBuilder<'a, Self, [&'a dyn BindableToken<QueryBuilder<QueryValues>>], [&'a dyn BindableValue<QueryBuilder<QueryValues>>], (), QueryConsistency, DynamicRequest>
Create a dynamic prepared delete request from a statement and variables.
The token
{{keyspace}} will be replaced with the keyspace name. Read moreSource§impl<S> GetDynamicInsertRequest for Swhere
S: Keyspace,
impl<S> GetDynamicInsertRequest for Swhere
S: Keyspace,
Source§fn insert_with<'a>(
&'a self,
statement: InsertStatement,
key: &'a [&dyn BindableToken<QueryBuilder<QueryValues>>],
values: &'a [&dyn BindableValue<QueryBuilder<QueryValues>>],
statement_type: StatementType,
) -> InsertBuilder<'a, Self, [&'a dyn BindableToken<QueryBuilder<QueryValues>>], [&'a dyn BindableValue<QueryBuilder<QueryValues>>], QueryConsistency, DynamicRequest>
fn insert_with<'a>( &'a self, statement: InsertStatement, key: &'a [&dyn BindableToken<QueryBuilder<QueryValues>>], values: &'a [&dyn BindableValue<QueryBuilder<QueryValues>>], statement_type: StatementType, ) -> InsertBuilder<'a, Self, [&'a dyn BindableToken<QueryBuilder<QueryValues>>], [&'a dyn BindableValue<QueryBuilder<QueryValues>>], QueryConsistency, DynamicRequest>
Create a dynamic insert request from a statement and variables. Can be specified as either
a query or prepared statement. The token
{{keyspace}} will be replaced with the keyspace name. Read moreSource§fn insert_query_with<'a>(
&'a self,
statement: InsertStatement,
key: &'a [&dyn BindableToken<QueryBuilder<QueryValues>>],
values: &'a [&dyn BindableValue<QueryBuilder<QueryValues>>],
) -> InsertBuilder<'a, Self, [&'a dyn BindableToken<QueryBuilder<QueryValues>>], [&'a dyn BindableValue<QueryBuilder<QueryValues>>], QueryConsistency, DynamicRequest>
fn insert_query_with<'a>( &'a self, statement: InsertStatement, key: &'a [&dyn BindableToken<QueryBuilder<QueryValues>>], values: &'a [&dyn BindableValue<QueryBuilder<QueryValues>>], ) -> InsertBuilder<'a, Self, [&'a dyn BindableToken<QueryBuilder<QueryValues>>], [&'a dyn BindableValue<QueryBuilder<QueryValues>>], QueryConsistency, DynamicRequest>
Create a dynamic insert query request from a statement and variables. The token
{{keyspace}} will be replaced
with the keyspace name. Read moreSource§fn insert_prepared_with<'a>(
&'a self,
statement: InsertStatement,
key: &'a [&dyn BindableToken<QueryBuilder<QueryValues>>],
values: &'a [&dyn BindableValue<QueryBuilder<QueryValues>>],
) -> InsertBuilder<'a, Self, [&'a dyn BindableToken<QueryBuilder<QueryValues>>], [&'a dyn BindableValue<QueryBuilder<QueryValues>>], QueryConsistency, DynamicRequest>
fn insert_prepared_with<'a>( &'a self, statement: InsertStatement, key: &'a [&dyn BindableToken<QueryBuilder<QueryValues>>], values: &'a [&dyn BindableValue<QueryBuilder<QueryValues>>], ) -> InsertBuilder<'a, Self, [&'a dyn BindableToken<QueryBuilder<QueryValues>>], [&'a dyn BindableValue<QueryBuilder<QueryValues>>], QueryConsistency, DynamicRequest>
Create a dynamic insert prepared request from a statement and variables. The token
{{keyspace}} will be
replaced with the keyspace name. Read moreSource§impl<S> GetDynamicPrepareRequest for Swhere
S: Keyspace,
impl<S> GetDynamicPrepareRequest for Swhere
S: Keyspace,
Source§fn prepare_with(
&self,
statement: impl Into<DataManipulationStatement>,
) -> PrepareRequest
fn prepare_with( &self, statement: impl Into<DataManipulationStatement>, ) -> PrepareRequest
Create a dynamic prepare request from a statement. The token
{{keyspace}} will be replaced with the keyspace
name. Read moreSource§impl<S> GetDynamicSelectRequest for Swhere
S: Keyspace,
impl<S> GetDynamicSelectRequest for Swhere
S: Keyspace,
Source§fn select_with<'a, O>(
&'a self,
statement: SelectStatement,
key: &'a [&dyn BindableToken<QueryBuilder<QueryValues>>],
variables: &'a [&dyn BindableValue<QueryBuilder<QueryValues>>],
statement_type: StatementType,
) -> SelectBuilder<'a, Self, [&'a dyn BindableToken<QueryBuilder<QueryValues>>], [&'a dyn BindableValue<QueryBuilder<QueryValues>>], O, QueryConsistency, DynamicRequest>
fn select_with<'a, O>( &'a self, statement: SelectStatement, key: &'a [&dyn BindableToken<QueryBuilder<QueryValues>>], variables: &'a [&dyn BindableValue<QueryBuilder<QueryValues>>], statement_type: StatementType, ) -> SelectBuilder<'a, Self, [&'a dyn BindableToken<QueryBuilder<QueryValues>>], [&'a dyn BindableValue<QueryBuilder<QueryValues>>], O, QueryConsistency, DynamicRequest>
Create a dynamic select request from a statement and variables. Can be specified as either
a query or prepared statement. The token
{{keyspace}} will be replaced with the keyspace name. Read moreSource§fn select_query_with<'a, O>(
&'a self,
statement: SelectStatement,
key: &'a [&dyn BindableToken<QueryBuilder<QueryValues>>],
variables: &'a [&dyn BindableValue<QueryBuilder<QueryValues>>],
) -> SelectBuilder<'a, Self, [&'a dyn BindableToken<QueryBuilder<QueryValues>>], [&'a dyn BindableValue<QueryBuilder<QueryValues>>], O, QueryConsistency, DynamicRequest>
fn select_query_with<'a, O>( &'a self, statement: SelectStatement, key: &'a [&dyn BindableToken<QueryBuilder<QueryValues>>], variables: &'a [&dyn BindableValue<QueryBuilder<QueryValues>>], ) -> SelectBuilder<'a, Self, [&'a dyn BindableToken<QueryBuilder<QueryValues>>], [&'a dyn BindableValue<QueryBuilder<QueryValues>>], O, QueryConsistency, DynamicRequest>
Create a dynamic select query request from a statement and variables. The token
{{keyspace}} will be replaced
with the keyspace name. Read moreSource§fn select_prepared_with<'a, O>(
&'a self,
statement: SelectStatement,
key: &'a [&dyn BindableToken<QueryBuilder<QueryValues>>],
variables: &'a [&dyn BindableValue<QueryBuilder<QueryValues>>],
) -> SelectBuilder<'a, Self, [&'a dyn BindableToken<QueryBuilder<QueryValues>>], [&'a dyn BindableValue<QueryBuilder<QueryValues>>], O, QueryConsistency, DynamicRequest>
fn select_prepared_with<'a, O>( &'a self, statement: SelectStatement, key: &'a [&dyn BindableToken<QueryBuilder<QueryValues>>], variables: &'a [&dyn BindableValue<QueryBuilder<QueryValues>>], ) -> SelectBuilder<'a, Self, [&'a dyn BindableToken<QueryBuilder<QueryValues>>], [&'a dyn BindableValue<QueryBuilder<QueryValues>>], O, QueryConsistency, DynamicRequest>
Create a dynamic select prepared request from a statement and variables. The token
{{keyspace}} will be
replaced with the keyspace name. Read moreSource§impl<S> GetDynamicUpdateRequest for Swhere
S: Keyspace,
impl<S> GetDynamicUpdateRequest for Swhere
S: Keyspace,
Source§fn update_with<'a>(
&'a self,
statement: UpdateStatement,
key: &'a [&dyn BindableToken<QueryBuilder<QueryValues>>],
variables: &'a [&dyn BindableValue<QueryBuilder<QueryValues>>],
statement_type: StatementType,
) -> UpdateBuilder<'a, Self, [&'a dyn BindableToken<QueryBuilder<QueryValues>>], [&'a dyn BindableValue<QueryBuilder<QueryValues>>], (), QueryConsistency, DynamicRequest>
fn update_with<'a>( &'a self, statement: UpdateStatement, key: &'a [&dyn BindableToken<QueryBuilder<QueryValues>>], variables: &'a [&dyn BindableValue<QueryBuilder<QueryValues>>], statement_type: StatementType, ) -> UpdateBuilder<'a, Self, [&'a dyn BindableToken<QueryBuilder<QueryValues>>], [&'a dyn BindableValue<QueryBuilder<QueryValues>>], (), QueryConsistency, DynamicRequest>
Create a dynamic update request from a statement and variables. Can be specified as either
a query or prepared statement. The token
{{keyspace}} will be replaced with the keyspace name. Read moreSource§fn update_query_with<'a>(
&'a self,
statement: UpdateStatement,
key: &'a [&dyn BindableToken<QueryBuilder<QueryValues>>],
variables: &'a [&dyn BindableValue<QueryBuilder<QueryValues>>],
) -> UpdateBuilder<'a, Self, [&'a dyn BindableToken<QueryBuilder<QueryValues>>], [&'a dyn BindableValue<QueryBuilder<QueryValues>>], (), QueryConsistency, DynamicRequest>
fn update_query_with<'a>( &'a self, statement: UpdateStatement, key: &'a [&dyn BindableToken<QueryBuilder<QueryValues>>], variables: &'a [&dyn BindableValue<QueryBuilder<QueryValues>>], ) -> UpdateBuilder<'a, Self, [&'a dyn BindableToken<QueryBuilder<QueryValues>>], [&'a dyn BindableValue<QueryBuilder<QueryValues>>], (), QueryConsistency, DynamicRequest>
Create a dynamic update query request from a statement and variables. The token
{{keyspace}} will be replaced
with the keyspace name. Read moreSource§fn update_prepared_with<'a>(
&'a self,
statement: UpdateStatement,
key: &'a [&dyn BindableToken<QueryBuilder<QueryValues>>],
variables: &'a [&dyn BindableValue<QueryBuilder<QueryValues>>],
) -> UpdateBuilder<'a, Self, [&'a dyn BindableToken<QueryBuilder<QueryValues>>], [&'a dyn BindableValue<QueryBuilder<QueryValues>>], (), QueryConsistency, DynamicRequest>
fn update_prepared_with<'a>( &'a self, statement: UpdateStatement, key: &'a [&dyn BindableToken<QueryBuilder<QueryValues>>], variables: &'a [&dyn BindableValue<QueryBuilder<QueryValues>>], ) -> UpdateBuilder<'a, Self, [&'a dyn BindableToken<QueryBuilder<QueryValues>>], [&'a dyn BindableValue<QueryBuilder<QueryValues>>], (), QueryConsistency, DynamicRequest>
Create a dynamic update prepared request from a statement and variables. The token
{{keyspace}} will be
replaced with the keyspace name. Read moreSource§impl<S> GetStatementIdExt for Swhere
S: Keyspace,
impl<S> GetStatementIdExt for Swhere
S: Keyspace,
fn select_statement<K, V, O>(&self) -> SelectStatementwhere
Self: Select<K, V, O>,
fn select_id<K, V, O>(&self) -> [u8; 16]where
Self: Select<K, V, O>,
fn insert_statement<K, V>(&self) -> InsertStatementwhere
Self: Insert<K, V>,
fn insert_id<K, V>(&self) -> [u8; 16]where
Self: Insert<K, V>,
fn update_statement<K, V, U>(&self) -> UpdateStatementwhere
Self: Update<K, V, U>,
fn update_id<K, V, U>(&self) -> [u8; 16]where
Self: Update<K, V, U>,
fn delete_statement<K, V, D>(&self) -> DeleteStatementwhere
Self: Delete<K, V, D>,
fn delete_id<K, V, D>(&self) -> [u8; 16]where
Self: Delete<K, V, D>,
Source§impl<S, K, V> GetStaticDeleteRequest<K, V> for Swhere
S: Keyspace,
impl<S, K, V> GetStaticDeleteRequest<K, V> for Swhere
S: Keyspace,
Source§fn delete<'a, D>(
&'a self,
key: &'a K,
variables: &'a V,
) -> DeleteBuilder<'a, Self, K, V, D, QueryConsistency, StaticRequest>where
Self: Delete<K, V, D>,
fn delete<'a, D>(
&'a self,
key: &'a K,
variables: &'a V,
) -> DeleteBuilder<'a, Self, K, V, D, QueryConsistency, StaticRequest>where
Self: Delete<K, V, D>,
Create a static delete request from a keyspace with a
Delete<K, V> definition. Will use the default type QueryOrPrepared from the trait definition. Read moreSource§fn delete_query<'a, D>(
&'a self,
key: &'a K,
variables: &'a V,
) -> DeleteBuilder<'a, Self, K, V, D, QueryConsistency, StaticRequest>where
Self: Delete<K, V, D>,
fn delete_query<'a, D>(
&'a self,
key: &'a K,
variables: &'a V,
) -> DeleteBuilder<'a, Self, K, V, D, QueryConsistency, StaticRequest>where
Self: Delete<K, V, D>,
Create a static delete query request from a keyspace with a
Delete<K, V> definition. Read moreSource§fn delete_prepared<'a, D>(
&'a self,
key: &'a K,
variables: &'a V,
) -> DeleteBuilder<'a, Self, K, V, D, QueryConsistency, StaticRequest>where
Self: Delete<K, V, D>,
fn delete_prepared<'a, D>(
&'a self,
key: &'a K,
variables: &'a V,
) -> DeleteBuilder<'a, Self, K, V, D, QueryConsistency, StaticRequest>where
Self: Delete<K, V, D>,
Create a static delete prepared request from a keyspace with a
Delete<K, V> definition. Read moreSource§impl<S, K, V> GetStaticInsertRequest<K, V> for Swhere
S: Keyspace,
impl<S, K, V> GetStaticInsertRequest<K, V> for Swhere
S: Keyspace,
Source§fn insert<'a>(
&'a self,
key: &'a K,
values: &'a V,
) -> InsertBuilder<'a, Self, K, V, QueryConsistency, StaticRequest>where
Self: Insert<K, V>,
fn insert<'a>(
&'a self,
key: &'a K,
values: &'a V,
) -> InsertBuilder<'a, Self, K, V, QueryConsistency, StaticRequest>where
Self: Insert<K, V>,
Create a static insert request from a keyspace with a
Insert<K, V> definition. Will use the default type QueryOrPrepared from the trait definition. Read moreSource§fn insert_query<'a>(
&'a self,
key: &'a K,
values: &'a V,
) -> InsertBuilder<'a, Self, K, V, QueryConsistency, StaticRequest>where
Self: Insert<K, V>,
fn insert_query<'a>(
&'a self,
key: &'a K,
values: &'a V,
) -> InsertBuilder<'a, Self, K, V, QueryConsistency, StaticRequest>where
Self: Insert<K, V>,
Create a static insert query request from a keyspace with a
Insert<K, V> definition. Read moreSource§fn insert_prepared<'a>(
&'a self,
key: &'a K,
values: &'a V,
) -> InsertBuilder<'a, Self, K, V, QueryConsistency, StaticRequest>where
Self: Insert<K, V>,
fn insert_prepared<'a>(
&'a self,
key: &'a K,
values: &'a V,
) -> InsertBuilder<'a, Self, K, V, QueryConsistency, StaticRequest>where
Self: Insert<K, V>,
Create a static insert prepared request from a keyspace with a
Insert<K, V> definition. Read moreSource§impl<S> GetStaticPrepareRequest for Swhere
S: Keyspace,
impl<S> GetStaticPrepareRequest for Swhere
S: Keyspace,
Source§fn prepare_select<K, V, O>(&self) -> PrepareRequestwhere
Self: Select<K, V, O>,
fn prepare_select<K, V, O>(&self) -> PrepareRequestwhere
Self: Select<K, V, O>,
Create a static prepare request from a keyspace with a
Select<K, V> definition. Read moreSource§fn prepare_insert<K, V>(&self) -> PrepareRequestwhere
Self: Insert<K, V>,
fn prepare_insert<K, V>(&self) -> PrepareRequestwhere
Self: Insert<K, V>,
Create a static prepare request from a keyspace with a
Insert<K, V> definition. Read moreSource§fn prepare_update<K, V, I>(&self) -> PrepareRequestwhere
Self: Update<K, V, I>,
fn prepare_update<K, V, I>(&self) -> PrepareRequestwhere
Self: Update<K, V, I>,
Create a static prepare request from a keyspace with a
Update<K, V> definition. Read moreSource§fn prepare_delete<K, V, D>(&self) -> PrepareRequestwhere
Self: Delete<K, V, D>,
fn prepare_delete<K, V, D>(&self) -> PrepareRequestwhere
Self: Delete<K, V, D>,
Create a static prepare request from a keyspace with a
Delete<K, V> definition. Read moreSource§impl<S, K, V> GetStaticSelectRequest<K, V> for Swhere
S: Keyspace,
impl<S, K, V> GetStaticSelectRequest<K, V> for Swhere
S: Keyspace,
Source§fn select<'a, O>(
&'a self,
key: &'a K,
variables: &'a V,
) -> SelectBuilder<'a, Self, K, V, O, QueryConsistency, StaticRequest>where
Self: Select<K, V, O>,
fn select<'a, O>(
&'a self,
key: &'a K,
variables: &'a V,
) -> SelectBuilder<'a, Self, K, V, O, QueryConsistency, StaticRequest>where
Self: Select<K, V, O>,
Create a static select request from a keyspace with a
Select<K, V> definition. Will use the default type QueryOrPrepared from the trait definition. Read moreSource§fn select_query<'a, O>(
&'a self,
key: &'a K,
variables: &'a V,
) -> SelectBuilder<'a, Self, K, V, O, QueryConsistency, StaticRequest>where
Self: Select<K, V, O>,
fn select_query<'a, O>(
&'a self,
key: &'a K,
variables: &'a V,
) -> SelectBuilder<'a, Self, K, V, O, QueryConsistency, StaticRequest>where
Self: Select<K, V, O>,
Create a static select query request from a keyspace with a
Select<K, V> definition. Read moreSource§fn select_prepared<'a, O>(
&'a self,
key: &'a K,
variables: &'a V,
) -> SelectBuilder<'a, Self, K, V, O, QueryConsistency, StaticRequest>where
Self: Select<K, V, O>,
fn select_prepared<'a, O>(
&'a self,
key: &'a K,
variables: &'a V,
) -> SelectBuilder<'a, Self, K, V, O, QueryConsistency, StaticRequest>where
Self: Select<K, V, O>,
Create a static select prepared request from a keyspace with a
Select<K, V> definition. Read moreSource§impl<S, K, V, U> GetStaticUpdateRequest<K, V, U> for Swhere
S: Keyspace,
impl<S, K, V, U> GetStaticUpdateRequest<K, V, U> for Swhere
S: Keyspace,
Source§fn update<'a>(
&'a self,
key: &'a K,
variables: &'a V,
values: &'a U,
) -> UpdateBuilder<'a, Self, K, V, U, QueryConsistency, StaticRequest>where
Self: Update<K, V, U>,
fn update<'a>(
&'a self,
key: &'a K,
variables: &'a V,
values: &'a U,
) -> UpdateBuilder<'a, Self, K, V, U, QueryConsistency, StaticRequest>where
Self: Update<K, V, U>,
Create a static update request from a keyspace with a
Update<K, V> definition. Will use the default type QueryOrPrepared from the trait definition. Read moreSource§fn update_query<'a>(
&'a self,
key: &'a K,
variables: &'a V,
values: &'a U,
) -> UpdateBuilder<'a, Self, K, V, U, QueryConsistency, StaticRequest>where
Self: Update<K, V, U>,
fn update_query<'a>(
&'a self,
key: &'a K,
variables: &'a V,
values: &'a U,
) -> UpdateBuilder<'a, Self, K, V, U, QueryConsistency, StaticRequest>where
Self: Update<K, V, U>,
Create a static update query request from a keyspace with a
Update<K, V> definition. Read moreSource§fn update_prepared<'a>(
&'a self,
key: &'a K,
variables: &'a V,
values: &'a U,
) -> UpdateBuilder<'a, Self, K, V, U, QueryConsistency, StaticRequest>where
Self: Update<K, V, U>,
fn update_prepared<'a>(
&'a self,
key: &'a K,
variables: &'a V,
values: &'a U,
) -> UpdateBuilder<'a, Self, K, V, U, QueryConsistency, StaticRequest>where
Self: Update<K, V, U>,
Create a static update prepared request from a keyspace with a
Update<K, V> definition. Read moreSource§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> Keyspace for T
impl<T> Keyspace for T
Source§fn opts(&self) -> KeyspaceOpts
fn opts(&self) -> KeyspaceOpts
Options defined for this keyspace
Source§fn decode_rows<V>(decoder: Decoder) -> Result<Option<V>>where
V: RowsDecoder,
fn decode_rows<V>(decoder: Decoder) -> Result<Option<V>>where
V: RowsDecoder,
Decode rows result
Source§fn create(&self) -> CreateKeyspaceStatement
fn create(&self) -> CreateKeyspaceStatement
Retrieve a CREATE KEYSPACE statement builder for this keyspace name
Source§fn drop(&self) -> DropKeyspaceStatement
fn drop(&self) -> DropKeyspaceStatement
Retrieve a DROP KEYSPACE statement builder for this keyspace name