pub struct CreateConnection { /* private fields */ }
Implementations§
Source§impl CreateConnection
impl CreateConnection
Sourcepub fn new(
name: impl Into<String>,
connection_details: ConnectionDetails,
should_scrape: bool,
) -> Self
pub fn new( name: impl Into<String>, connection_details: ConnectionDetails, should_scrape: bool, ) -> Self
Constructs a new instance of the type.
pub fn name(&self) -> &str
pub fn description(&self) -> Option<&str>
pub fn connection_details(&self) -> &ConnectionDetails
Sourcepub fn metadata(&self) -> &BTreeMap<String, String>
pub fn metadata(&self) -> &BTreeMap<String, String>
Metadata information about the connection which is not relevant to the DB connection itself.
Sourcepub fn required_tag_names(&self) -> &BTreeSet<TagName>
pub fn required_tag_names(&self) -> &BTreeSet<TagName>
Additional tag name that are required to construct a fully qualified series.
Sourcepub fn available_tag_values(
&self,
) -> Option<&BTreeMap<TagName, BTreeSet<TagValue>>>
pub fn available_tag_values( &self, ) -> Option<&BTreeMap<TagName, BTreeSet<TagValue>>>
In most cases, this does not to be set by the user. Throws if populated for Nominal connections, which have their tags automatically indexed in the underlying database. Tags for external connections are periodically scraped. Tags should only be updated manually for Visual crossing connections.
pub fn scraping(&self) -> Option<&ScrapingConfig>
pub fn should_scrape(&self) -> bool
pub fn limits(&self) -> Option<&LimitsConfig>
Sourcepub fn workspace(&self) -> Option<&WorkspaceRid>
pub fn workspace(&self) -> Option<&WorkspaceRid>
The workspace in which to create the connection. If not provided, the connection will be created in the default workspace for the user’s organization, if the default workspace for the organization is configured.
Sourcepub fn marking_rids(&self) -> &BTreeSet<MarkingRid>
pub fn marking_rids(&self) -> &BTreeSet<MarkingRid>
The markings to apply to the created connection. If not provided, the connection will be visible to all users in the same workspace.
Trait Implementations§
Source§impl Clone for CreateConnection
impl Clone for CreateConnection
Source§fn clone(&self) -> CreateConnection
fn clone(&self) -> CreateConnection
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for CreateConnection
impl Debug for CreateConnection
Source§impl<'de> Deserialize<'de> for CreateConnection
impl<'de> Deserialize<'de> for CreateConnection
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>,
Source§impl From<CreateConnection> for Builder<Complete>
impl From<CreateConnection> for Builder<Complete>
Source§fn from(v: CreateConnection) -> Self
fn from(v: CreateConnection) -> Self
Source§impl Hash for CreateConnection
impl Hash for CreateConnection
Source§impl Ord for CreateConnection
impl Ord for CreateConnection
Source§fn cmp(&self, other: &CreateConnection) -> Ordering
fn cmp(&self, other: &CreateConnection) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Source§impl PartialEq for CreateConnection
impl PartialEq for CreateConnection
Source§impl PartialOrd for CreateConnection
impl PartialOrd for CreateConnection
Source§impl Serialize for CreateConnection
impl Serialize for CreateConnection
impl Eq for CreateConnection
impl StructuralPartialEq for CreateConnection
Auto Trait Implementations§
impl Freeze for CreateConnection
impl RefUnwindSafe for CreateConnection
impl Send for CreateConnection
impl Sync for CreateConnection
impl Unpin for CreateConnection
impl UnwindSafe for CreateConnection
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
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
key
and return true
if they are equal.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>
T
in a tonic::Request