pub struct ArtifactPublisher { /* private fields */ }Expand description
Publishing client for plugin artifacts
Implementations§
Source§impl ArtifactPublisher
impl ArtifactPublisher
Sourcepub fn new(config: PublishConfig) -> Self
pub fn new(config: PublishConfig) -> Self
Create a new artifact publisher
Sourcepub fn validate(&self, artifact_path: &Path) -> Result<LocalArtifact>
pub fn validate(&self, artifact_path: &Path) -> Result<LocalArtifact>
Validate an artifact without publishing
Returns metadata about the artifact if valid
Sourcepub fn is_authenticated(&self) -> bool
pub fn is_authenticated(&self) -> bool
Check if the publisher has valid authentication
Sourcepub fn registry_url(&self) -> &str
pub fn registry_url(&self) -> &str
Get the configured registry URL
Trait Implementations§
Source§impl Clone for ArtifactPublisher
impl Clone for ArtifactPublisher
Source§fn clone(&self) -> ArtifactPublisher
fn clone(&self) -> ArtifactPublisher
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for ArtifactPublisher
impl RefUnwindSafe for ArtifactPublisher
impl Send for ArtifactPublisher
impl Sync for ArtifactPublisher
impl Unpin for ArtifactPublisher
impl UnsafeUnpin for ArtifactPublisher
impl UnwindSafe for ArtifactPublisher
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