pub struct CreateDeepgramCredentialDto {
pub provider: ProviderTrue,
pub api_key: String,
pub api_url: Option<String>,
pub name: Option<String>,
}
Fields§
§provider: ProviderTrue
§api_key: String
This is not returned in the API.
api_url: Option<String>
This can be used to point to an onprem Deepgram instance. Defaults to api.deepgram.com.
name: Option<String>
This is the name of credential. This is just for your reference.
Implementations§
Source§impl CreateDeepgramCredentialDto
impl CreateDeepgramCredentialDto
pub fn new( provider: ProviderTrue, api_key: String, ) -> CreateDeepgramCredentialDto
Trait Implementations§
Source§impl Clone for CreateDeepgramCredentialDto
impl Clone for CreateDeepgramCredentialDto
Source§fn clone(&self) -> CreateDeepgramCredentialDto
fn clone(&self) -> CreateDeepgramCredentialDto
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for CreateDeepgramCredentialDto
impl Debug for CreateDeepgramCredentialDto
Source§impl Default for CreateDeepgramCredentialDto
impl Default for CreateDeepgramCredentialDto
Source§fn default() -> CreateDeepgramCredentialDto
fn default() -> CreateDeepgramCredentialDto
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for CreateDeepgramCredentialDto
impl<'de> Deserialize<'de> for CreateDeepgramCredentialDto
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
impl StructuralPartialEq for CreateDeepgramCredentialDto
Auto Trait Implementations§
impl Freeze for CreateDeepgramCredentialDto
impl RefUnwindSafe for CreateDeepgramCredentialDto
impl Send for CreateDeepgramCredentialDto
impl Sync for CreateDeepgramCredentialDto
impl Unpin for CreateDeepgramCredentialDto
impl UnwindSafe for CreateDeepgramCredentialDto
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