pub struct StripeProjects<R: CommandRunner> { /* private fields */ }Implementations§
Source§impl<R: CommandRunner> StripeProjects<R>
impl<R: CommandRunner> StripeProjects<R>
pub fn new(runner: R, dir: impl Into<PathBuf>) -> Self
pub fn dir(&self) -> &Path
Sourcepub fn as_dyn(&self) -> StripeProjects<&dyn CommandRunner>
pub fn as_dyn(&self) -> StripeProjects<&dyn CommandRunner>
Borrow as a StripeProjects<&dyn CommandRunner> so callers holding a
dyn dispatch target can run commands without being generic over R
(impl CommandRunner for &T makes the erased runner a valid runner).
pub async fn json(&self, args: &[&str]) -> Result<StripeResult, ProjectsError>
Sourcepub async fn catalog(&self) -> Result<Catalog, ProjectsError>
pub async fn catalog(&self) -> Result<Catalog, ProjectsError>
Fetch and type the provider catalog (stripe projects catalog --json).
pub async fn plain(&self, args: &[&str]) -> Result<CommandOutput, ProjectsError>
pub fn classify_failure( &self, command: &str, result: &StripeResult, ) -> ProjectsError
pub async fn run_ok( &self, command: &str, args: &[&str], plain_extra: &[&str], ) -> Result<Value, ProjectsError>
Trait Implementations§
Auto Trait Implementations§
impl<R> Freeze for StripeProjects<R>where
R: Freeze,
impl<R> RefUnwindSafe for StripeProjects<R>where
R: RefUnwindSafe,
impl<R> Send for StripeProjects<R>
impl<R> Sync for StripeProjects<R>
impl<R> Unpin for StripeProjects<R>where
R: Unpin,
impl<R> UnsafeUnpin for StripeProjects<R>where
R: UnsafeUnpin,
impl<R> UnwindSafe for StripeProjects<R>where
R: UnwindSafe,
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