Struct ForgeApiRequest
pub struct ForgeApiRequest {
pub method: String,
pub path: String,
pub body: Option<Value>,
}Expand description
A low-level, provider-relative forge API request routed through a
forge-backed channel. Channel-neutral so the Channel trait carries no
forge-specific types; the git channel maps this onto its provider’s
forge_request. method is an uppercase HTTP verb (GET/POST/PATCH/
PUT/DELETE); path is relative to the provider’s API base (e.g.
repos/owner/repo/issues/12/labels); body is an optional JSON payload.
Fields§
§method: String§path: String§body: Option<Value>Trait Implementations§
Source§impl Clone for ForgeApiRequest
impl Clone for ForgeApiRequest
Source§fn clone(&self) -> ForgeApiRequest
fn clone(&self) -> ForgeApiRequest
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · §fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for ForgeApiRequest
impl RefUnwindSafe for ForgeApiRequest
impl Send for ForgeApiRequest
impl Sync for ForgeApiRequest
impl Unpin for ForgeApiRequest
impl UnsafeUnpin for ForgeApiRequest
impl UnwindSafe for ForgeApiRequest
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