pub struct Endpoint<'input> {
pub id: Loc<Cow<'input, str>>,
pub alias: Option<String>,
pub arguments: Vec<EndpointArgument<'input>>,
pub response: Option<Loc<Channel<'input>>>,
}
Expand description
An endpoint
ⓘ
<id>(<arguments>) -> <response> as <alias> {
<options>
}
Fields§
§id: Loc<Cow<'input, str>>
§alias: Option<String>
§arguments: Vec<EndpointArgument<'input>>
§response: Option<Loc<Channel<'input>>>
Trait Implementations§
impl<'input> Eq for Endpoint<'input>
impl<'input> StructuralPartialEq for Endpoint<'input>
Auto Trait Implementations§
impl<'input> Freeze for Endpoint<'input>
impl<'input> RefUnwindSafe for Endpoint<'input>
impl<'input> Send for Endpoint<'input>
impl<'input> Sync for Endpoint<'input>
impl<'input> Unpin for Endpoint<'input>
impl<'input> UnwindSafe for Endpoint<'input>
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