pub struct IrOperationView<'a> { /* private fields */ }Expand description
A graph-aware view of an IrOperation.
Implementations§
Source§impl<'a> IrOperationView<'a>
impl<'a> IrOperationView<'a>
pub fn resource(&self) -> &'a str
pub fn id(&self) -> &'a str
pub fn method(&self) -> Method
pub fn path(&self) -> IrOperationViewPath<'_, 'a>
pub fn description(&self) -> Option<&'a str>
Sourcepub fn query(
&self,
) -> impl Iterator<Item = IrParameterView<'a, IrQueryParameter>> + '_
pub fn query( &self, ) -> impl Iterator<Item = IrParameterView<'a, IrQueryParameter>> + '_
Returns an iterator over this operation’s query parameters.
Sourcepub fn request(&self) -> Option<IrRequestView<'a>>
pub fn request(&self) -> Option<IrRequestView<'a>>
Returns a view of the request body, if present.
Sourcepub fn response(&self) -> Option<IrResponseView<'a>>
pub fn response(&self) -> Option<IrResponseView<'a>>
Returns a view of the response body, if present.
Sourcepub fn inlines(&self) -> impl Iterator<Item = InlineIrTypeView<'a>>
pub fn inlines(&self) -> impl Iterator<Item = InlineIrTypeView<'a>>
Returns an iterator over all the inline types that are contained within this operation’s referenced types.
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for IrOperationView<'a>
impl<'a> !RefUnwindSafe for IrOperationView<'a>
impl<'a> Send for IrOperationView<'a>
impl<'a> Sync for IrOperationView<'a>
impl<'a> Unpin for IrOperationView<'a>
impl<'a> !UnwindSafe for IrOperationView<'a>
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more