pub struct ReplayUploader { /* private fields */ }Implementations§
Source§impl ReplayUploader
impl ReplayUploader
pub fn new() -> Self
pub async fn ping(&self, target: &UploadDestinationConfig) -> Result<()>
pub async fn upload_replay( &self, target: &UploadDestinationConfig, file_path: &Path, ) -> Result<UploadResult>
pub async fn upload_replay_with_match_id( &self, target: &UploadDestinationConfig, file_path: &Path, match_id: Option<&str>, ) -> Result<UploadResult>
Sourcepub async fn upload_replay_with_auth_header(
&self,
target: &UploadDestinationConfig,
file_path: &Path,
match_id: Option<&str>,
upload_name: Option<&str>,
auth_header: Option<String>,
ranks_bundle: Option<&RankBundle>,
) -> Result<UploadResult>
pub async fn upload_replay_with_auth_header( &self, target: &UploadDestinationConfig, file_path: &Path, match_id: Option<&str>, upload_name: Option<&str>, auth_header: Option<String>, ranks_bundle: Option<&RankBundle>, ) -> Result<UploadResult>
Uploads a replay file. upload_name, when provided, becomes the multipart
filename (most destinations surface it as the replay’s display name);
otherwise the name falls back to {match_id}.replay or the file’s own
name.
pub async fn upload_mmr( &self, target: &UploadDestinationConfig, payload: &MmrUpload, match_id: &str, ) -> Result<()>
Sourcepub async fn upload_mmr_with_auth_header(
&self,
target: &UploadDestinationConfig,
payload: &MmrUpload,
match_id: &str,
auth_header: Option<String>,
) -> Result<()>
pub async fn upload_mmr_with_auth_header( &self, target: &UploadDestinationConfig, payload: &MmrUpload, match_id: &str, auth_header: Option<String>, ) -> Result<()>
Posts per-match player rank metadata, mirroring the BakkesMod
AutoReplayUploader plugin’s separate POST /api/v1/mmr request. No-op
unless the destination uses an MMR endpoint and there is data to send.
Trait Implementations§
Source§impl Clone for ReplayUploader
impl Clone for ReplayUploader
Source§fn clone(&self) -> ReplayUploader
fn clone(&self) -> ReplayUploader
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ReplayUploader
impl Debug for ReplayUploader
Auto Trait Implementations§
impl !RefUnwindSafe for ReplayUploader
impl !UnwindSafe for ReplayUploader
impl Freeze for ReplayUploader
impl Send for ReplayUploader
impl Sync for ReplayUploader
impl Unpin for ReplayUploader
impl UnsafeUnpin for ReplayUploader
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