pub struct Client(/* private fields */);Implementations§
Source§impl Client
impl Client
Sourcepub fn create(
&self,
organization: impl Into<String>,
body: impl Into<String>,
project: impl Into<String>,
) -> RequestBuilder
pub fn create( &self, organization: impl Into<String>, body: impl Into<String>, project: impl Into<String>, ) -> RequestBuilder
Uploads an attachment.
On accounts with higher attachment upload limits (>130MB), you will need to use chunked upload. To upload an attachment in multiple chunks, you first need to Start a Chunked Upload and then follow the example from the Upload Chunk section.
Arguments:
organization: The name of the Azure DevOps organization.body: Stream to uploadproject: Project ID or project name
Sourcepub fn get(
&self,
organization: impl Into<String>,
id: impl Into<String>,
project: impl Into<String>,
) -> RequestBuilder
pub fn get( &self, organization: impl Into<String>, id: impl Into<String>, project: impl Into<String>, ) -> RequestBuilder
Downloads an attachment.
Arguments:
organization: The name of the Azure DevOps organization.id: Attachment IDproject: Project ID or project name
Sourcepub fn upload_chunk(
&self,
organization: impl Into<String>,
body: impl Into<String>,
id: impl Into<String>,
content_range_header: impl Into<String>,
project: impl Into<String>,
) -> RequestBuilder
pub fn upload_chunk( &self, organization: impl Into<String>, body: impl Into<String>, id: impl Into<String>, content_range_header: impl Into<String>, project: impl Into<String>, ) -> RequestBuilder
Uploads an attachment chunk.
Before performing Upload a Chunk, make sure to have an attachment id returned in Start a Chunked Upload example on Create section. Specify the byte range of the chunk using Content-Length. For example: “Content - Length”: “bytes 0 - 39999 / 50000” for the first 40000 bytes of a 50000 byte file.
Arguments:
organization: The name of the Azure DevOps organization.body: Stream to uploadid: The id of the attachmentcontent_range_header: starting and ending byte positions for chunked file upload, format is “Content-Range”: “bytes 0-10000/50000”project: Project ID or project name
Auto Trait Implementations§
impl Freeze for Client
impl !RefUnwindSafe for Client
impl Send for Client
impl Sync for Client
impl Unpin for Client
impl !UnwindSafe for Client
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