pub struct Target {
pub provider: String,
pub source: Source,
pub token: Option<String>,
pub configured: bool,
}Expand description
One provider to refresh, with what the refresh needs from the registry.
Fields§
§provider: StringProvider id.
source: SourceWhere its catalog comes from.
token: Option<String>Its credential for the gateway, when it has one: an OAuth access token or an API key. pi.dev’s catalogs need none but refresh only for configured providers.
configured: boolWhether the provider is configured.
Trait Implementations§
Auto Trait Implementations§
impl Forget for Target
impl Freeze for Target
impl RefUnwindSafe for Target
impl Send for Target
impl Sync for Target
impl Unpin for Target
impl UnsafeUnpin for Target
impl UnwindSafe for Target
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