pub struct BakedTool {Show 20 fields
pub source_type: String,
pub source: String,
pub base_url: Option<String>,
pub auth_headers: Vec<(String, String)>,
pub env_vars: BTreeMap<String, String>,
pub cache_ttl: u64,
pub transport: String,
pub oauth: bool,
pub oauth_client_id: Option<String>,
pub oauth_client_secret: Option<String>,
pub oauth_client_name: String,
pub oauth_scope: Option<String>,
pub oauth_redirect_uri: Option<String>,
pub oauth_flow: String,
pub session: Option<String>,
pub include: Vec<String>,
pub exclude: Vec<String>,
pub methods: Vec<String>,
pub description: String,
pub extra: BTreeMap<String, Value>,
}Fields§
§source_type: String§source: String§base_url: Option<String>§auth_headers: Vec<(String, String)>§env_vars: BTreeMap<String, String>§cache_ttl: u64§transport: String§oauth: bool§oauth_client_id: Option<String>§oauth_client_secret: Option<String>§oauth_client_name: String§oauth_scope: Option<String>§oauth_redirect_uri: Option<String>§oauth_flow: String§session: Option<String>Prefer routing through this named session daemon when present
include: Vec<String>§exclude: Vec<String>§methods: Vec<String>§description: String§extra: BTreeMap<String, Value>Forward-compat for fields we don’t model yet.
Implementations§
Source§impl BakedTool
impl BakedTool
pub fn bake_config(&self) -> BakeConfig
Sourcepub fn to_argv(&self) -> Vec<String>
pub fn to_argv(&self) -> Vec<String>
Reconstruct CLI argv from a baked config (Python _baked_to_argv).
Sourcepub fn masked_for_display(&self) -> Value
pub fn masked_for_display(&self) -> Value
Copy suitable for bake show (literal secrets masked).
Trait Implementations§
Source§impl<'de> Deserialize<'de> for BakedTool
impl<'de> Deserialize<'de> for BakedTool
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 BakedTool
Auto Trait Implementations§
impl Freeze for BakedTool
impl RefUnwindSafe for BakedTool
impl Send for BakedTool
impl Sync for BakedTool
impl Unpin for BakedTool
impl UnsafeUnpin for BakedTool
impl UnwindSafe for BakedTool
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