#[non_exhaustive]pub struct GetObjectTorrentOutputBuilder { /* private fields */ }
Expand description
A builder for GetObjectTorrentOutput
.
Implementations§
source§impl GetObjectTorrentOutputBuilder
impl GetObjectTorrentOutputBuilder
sourcepub fn body(self, input: ByteStream) -> Self
pub fn body(self, input: ByteStream) -> Self
A Bencoded dictionary as defined by the BitTorrent specification
sourcepub fn set_body(self, input: Option<ByteStream>) -> Self
pub fn set_body(self, input: Option<ByteStream>) -> Self
A Bencoded dictionary as defined by the BitTorrent specification
sourcepub fn get_body(&self) -> &Option<ByteStream>
pub fn get_body(&self) -> &Option<ByteStream>
A Bencoded dictionary as defined by the BitTorrent specification
sourcepub fn request_charged(self, input: RequestCharged) -> Self
pub fn request_charged(self, input: RequestCharged) -> Self
If present, indicates that the requester was successfully charged for the request.
This functionality is not supported for directory buckets.
sourcepub fn set_request_charged(self, input: Option<RequestCharged>) -> Self
pub fn set_request_charged(self, input: Option<RequestCharged>) -> Self
If present, indicates that the requester was successfully charged for the request.
This functionality is not supported for directory buckets.
sourcepub fn get_request_charged(&self) -> &Option<RequestCharged>
pub fn get_request_charged(&self) -> &Option<RequestCharged>
If present, indicates that the requester was successfully charged for the request.
This functionality is not supported for directory buckets.
sourcepub fn build(self) -> GetObjectTorrentOutput
pub fn build(self) -> GetObjectTorrentOutput
Consumes the builder and constructs a GetObjectTorrentOutput
.
Trait Implementations§
source§impl Default for GetObjectTorrentOutputBuilder
impl Default for GetObjectTorrentOutputBuilder
source§fn default() -> GetObjectTorrentOutputBuilder
fn default() -> GetObjectTorrentOutputBuilder
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl !RefUnwindSafe for GetObjectTorrentOutputBuilder
impl Send for GetObjectTorrentOutputBuilder
impl Sync for GetObjectTorrentOutputBuilder
impl Unpin for GetObjectTorrentOutputBuilder
impl !UnwindSafe for GetObjectTorrentOutputBuilder
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
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Creates a shared type from an unshared type.