pub struct CacheClient { /* private fields */ }
Expand description
GitHub Actions cache client.
See module documentation.
Implementations§
Source§impl CacheClient
impl CacheClient
Sourcepub fn builder<B: Into<String>, T: Into<String>>(
base_url: B,
token: T,
) -> CacheClientBuilder
pub fn builder<B: Into<String>, T: Into<String>>( base_url: B, token: T, ) -> CacheClientBuilder
Creates a new CacheClientBuilder
.
Sourcepub fn from_env() -> Result<CacheClientBuilder>
pub fn from_env() -> Result<CacheClientBuilder>
Creates a new CacheClientBuilder
from environmental variables.
Sourcepub fn cache_from(&self) -> Option<&str>
pub fn cache_from(&self) -> Option<&str>
Gets the cache key prefixes to read.
Trait Implementations§
Source§impl TryInto<CacheClient> for CacheClientBuilder
impl TryInto<CacheClient> for CacheClientBuilder
Auto Trait Implementations§
impl Freeze for CacheClient
impl !RefUnwindSafe for CacheClient
impl Send for CacheClient
impl Sync for CacheClient
impl Unpin for CacheClient
impl !UnwindSafe for CacheClient
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