pub struct GitHubEnvironmentClient { /* private fields */ }Implementations§
Source§impl GitHubEnvironmentClient
impl GitHubEnvironmentClient
pub fn new( owner: impl Into<String>, repo: impl Into<String>, environment: impl Into<String>, token: impl Into<String>, ) -> Result<Self, String>
pub async fn validate_repo_access(&self) -> Result<(), String>
pub async fn list(&self) -> Result<Vec<GitHubSecretVariable>, String>
pub async fn list_with_progress<F>( &self, progress: &mut F, ) -> Result<Vec<GitHubSecretVariable>, String>
pub async fn upsert( &self, variables: &HashMap<String, String>, progress: &mut dyn FnMut(&str), ) -> Result<(), String>
pub async fn diag(&self) -> Result<ProviderErrorResponse, String>
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for GitHubEnvironmentClient
impl !UnwindSafe for GitHubEnvironmentClient
impl Freeze for GitHubEnvironmentClient
impl Send for GitHubEnvironmentClient
impl Sync for GitHubEnvironmentClient
impl Unpin for GitHubEnvironmentClient
impl UnsafeUnpin for GitHubEnvironmentClient
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
impl<T> ErasedDestructor for Twhere
T: 'static,
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> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more