#[non_exhaustive]pub struct QueryHistoryAddInput {
pub org: Option<String>,
pub namespace: Option<String>,
pub name: String,
pub host: String,
pub port: Option<Integer>,
pub secure: Option<bool>,
pub user: String,
pub password: String,
pub databases: Vec<String>,
pub cluster: Option<String>,
}Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.org: Option<String>§namespace: Option<String>§name: String§host: String§port: Option<Integer>§secure: Option<bool>§user: String§password: String§databases: Vec<String>§cluster: Option<String>Implementations§
Source§impl QueryHistoryAddInput
impl QueryHistoryAddInput
pub fn new( name: impl Into<String>, host: impl Into<String>, user: impl Into<String>, password: impl Into<String>, databases: impl IntoIterator<Item = impl Into<String>>, ) -> Self
pub fn org(self, org: impl Into<String>) -> Self
pub fn namespace(self, namespace: impl Into<String>) -> Self
pub fn port(self, port: impl Into<Integer>) -> Self
pub fn secure(self, secure: bool) -> Self
pub fn cluster(self, cluster: impl Into<String>) -> Self
pub async fn send( self, client: &Client, options: CallOptions, ) -> Result<CallResult<QueryHistorySource>, CallFailure>
Trait Implementations§
Source§impl Clone for QueryHistoryAddInput
impl Clone for QueryHistoryAddInput
Source§impl Debug for QueryHistoryAddInput
impl Debug for QueryHistoryAddInput
Source§impl<'de> Deserialize<'de> for QueryHistoryAddInput
impl<'de> Deserialize<'de> for QueryHistoryAddInput
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for QueryHistoryAddInput
impl PartialEq for QueryHistoryAddInput
Source§impl Serialize for QueryHistoryAddInput
impl Serialize for QueryHistoryAddInput
impl StructuralPartialEq for QueryHistoryAddInput
Auto Trait Implementations§
impl Forget for QueryHistoryAddInput
impl Freeze for QueryHistoryAddInput
impl Move for QueryHistoryAddInput
impl RefUnwindSafe for QueryHistoryAddInput
impl Send for QueryHistoryAddInput
impl Sync for QueryHistoryAddInput
impl Unpin for QueryHistoryAddInput
impl UnsafeUnpin for QueryHistoryAddInput
impl UnwindSafe for QueryHistoryAddInput
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