pub struct Connections { /* private fields */ }Expand description
The connections namespace. Obtain one with Client::connections.
Implementations§
Source§impl Connections
impl Connections
Sourcepub fn add(
&self,
name: impl Into<String>,
connection_type: impl Into<String>,
secret: impl Into<String>,
) -> ConnectionAdd
pub fn add( &self, name: impl Into<String>, connection_type: impl Into<String>, secret: impl Into<String>, ) -> ConnectionAdd
Store a credential.
Sourcepub async fn list(&self) -> Result<Vec<Connection>>
pub async fn list(&self) -> Result<Vec<Connection>>
List this org’s connections. Secrets are never returned.
Sourcepub async fn revoke(&self, name: &str) -> Result<ConnectionRevoked>
pub async fn revoke(&self, name: &str) -> Result<ConnectionRevoked>
Revoke a connection.
Trait Implementations§
Source§impl Clone for Connections
impl Clone for Connections
Source§fn clone(&self) -> Connections
fn clone(&self) -> Connections
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl !RefUnwindSafe for Connections
impl !UnwindSafe for Connections
impl Freeze for Connections
impl Send for Connections
impl Sync for Connections
impl Unpin for Connections
impl UnsafeUnpin for Connections
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