#[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 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.
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.
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