pub struct Metadata {
pub endpoint: &'static str,
pub method: Method,
pub auth: AuthRequirement,
}Expand description
Represents metadata for an API endpoint.
This struct holds information about the endpoint, such as the URL endpoint, HTTP method, and authorization requirement.
Fields§
§endpoint: &'static strThe URL endpoint for the request.
method: MethodThe HTTP method for the request.
auth: AuthRequirementAuthorization requirement for the request.
Trait Implementations§
impl Eq for Metadata
impl StructuralPartialEq for Metadata
Auto Trait Implementations§
impl Freeze for Metadata
impl RefUnwindSafe for Metadata
impl Send for Metadata
impl Sync for Metadata
impl Unpin for Metadata
impl UnwindSafe for Metadata
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