pub struct ReplayProviderConfig {
pub name: String,
pub kind: String,
pub cassettes: PathBuf,
pub mode: ReplayMode,
pub upstream: Option<ReplayUpstream>,
pub aliases: Vec<String>,
}Expand description
A kind: replay providers-file entry (see crate::replay).
Fields§
§name: String§kind: StringAlways replay.
cassettes: PathBufCassette directory. Relative paths are resolved by the host (the CLI
resolves them against the providers file, see ProvidersConfig::resolve_paths).
mode: ReplayModereplay (default), record or auto; GRAPHRT_REPLAY_MODE overrides it.
upstream: Option<ReplayUpstream>Provider to record from: the name of another provider of this file, or an
inline provider entry whose name may be omitted.
Only built when the mode records, so replaying needs no API key.
aliases: Vec<String>Additional provider names resolving to this provider.
Trait Implementations§
Source§impl Clone for ReplayProviderConfig
impl Clone for ReplayProviderConfig
Source§impl Debug for ReplayProviderConfig
impl Debug for ReplayProviderConfig
Source§impl<'de> Deserialize<'de> for ReplayProviderConfig
impl<'de> Deserialize<'de> for ReplayProviderConfig
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
Auto Trait Implementations§
impl Forget for ReplayProviderConfig
impl Freeze for ReplayProviderConfig
impl Move for ReplayProviderConfig
impl RefUnwindSafe for ReplayProviderConfig
impl Send for ReplayProviderConfig
impl Sync for ReplayProviderConfig
impl Unpin for ReplayProviderConfig
impl UnsafeUnpin for ReplayProviderConfig
impl UnwindSafe for ReplayProviderConfig
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