pub struct UpdateResponse { /* private fields */ }Implementations§
Source§impl UpdateResponse
impl UpdateResponse
pub fn new(status: u16) -> UpdateResponse
pub fn with_version(self, versions: Vec<Version>) -> UpdateResponse
pub fn with_parents(self, parents: Vec<Version>) -> UpdateResponse
pub fn with_current_version(self, versions: Vec<Version>) -> UpdateResponse
pub fn with_body(self, body: impl Into<Bytes>) -> UpdateResponse
pub fn with_header(self, key: String, value: String) -> UpdateResponse
pub fn build(self) -> Response<Body>
Auto Trait Implementations§
impl !Freeze for UpdateResponse
impl RefUnwindSafe for UpdateResponse
impl Send for UpdateResponse
impl Sync for UpdateResponse
impl Unpin for UpdateResponse
impl UnwindSafe for UpdateResponse
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