pub struct PortQuery { /* private fields */ }
Expand description
A query to port list.
Implementations§
source§impl PortQuery
impl PortQuery
sourcepub fn with_marker<T: Into<String>>(self, marker: T) -> Self
pub fn with_marker<T: Into<String>>(self, marker: T) -> Self
Add marker to the request.
Using this disables automatic pagination.
sourcepub fn with_limit(self, limit: usize) -> Self
pub fn with_limit(self, limit: usize) -> Self
Add limit to the request.
Using this disables automatic pagination.
sourcepub fn sort_by(self, sort: Sort<PortSortKey>) -> Self
pub fn sort_by(self, sort: Sort<PortSortKey>) -> Self
Add sorting to the request.
sourcepub fn set_admin_state_up<T: Into<bool>>(&mut self, value: T)
pub fn set_admin_state_up<T: Into<bool>>(&mut self, value: T)
Filter by administrative state.
sourcepub fn with_admin_state_up<T: Into<bool>>(self, value: T) -> Self
pub fn with_admin_state_up<T: Into<bool>>(self, value: T) -> Self
Filter by administrative state.
sourcepub fn set_description<T: Into<String>>(&mut self, value: T)
pub fn set_description<T: Into<String>>(&mut self, value: T)
Filter by description.
sourcepub fn with_description<T: Into<String>>(self, value: T) -> Self
pub fn with_description<T: Into<String>>(self, value: T) -> Self
Filter by description.
sourcepub fn set_device_id<T: Into<String>>(&mut self, value: T)
pub fn set_device_id<T: Into<String>>(&mut self, value: T)
Filter by the ID of the object attached to the port.
sourcepub fn with_device_id<T: Into<String>>(self, value: T) -> Self
pub fn with_device_id<T: Into<String>>(self, value: T) -> Self
Filter by the ID of the object attached to the port.
sourcepub fn set_device_owner<T: Into<String>>(&mut self, value: T)
pub fn set_device_owner<T: Into<String>>(&mut self, value: T)
Filter by the ID of the object attached to the port.
sourcepub fn with_device_owner<T: Into<String>>(self, value: T) -> Self
pub fn with_device_owner<T: Into<String>>(self, value: T) -> Self
Filter by the ID of the object attached to the port.
sourcepub fn set_mac_address<T: Into<String>>(&mut self, value: T)
pub fn set_mac_address<T: Into<String>>(&mut self, value: T)
Filter by MAC address.
sourcepub fn with_mac_address<T: Into<String>>(self, value: T) -> Self
pub fn with_mac_address<T: Into<String>>(self, value: T) -> Self
Filter by MAC address.
sourcepub fn set_network<N: Into<NetworkRef>>(&mut self, value: N)
pub fn set_network<N: Into<NetworkRef>>(&mut self, value: N)
Filter by network.
sourcepub fn with_network<N: Into<NetworkRef>>(self, value: N) -> Self
pub fn with_network<N: Into<NetworkRef>>(self, value: N) -> Self
Filter by network.
sourcepub fn set_status<T: Into<NetworkStatus>>(&mut self, value: T)
pub fn set_status<T: Into<NetworkStatus>>(&mut self, value: T)
Filter by status.
sourcepub fn with_status<T: Into<NetworkStatus>>(self, value: T) -> Self
pub fn with_status<T: Into<NetworkStatus>>(self, value: T) -> Self
Filter by status.
sourcepub fn into_stream(self) -> impl Stream<Item = Result<Port>>
pub fn into_stream(self) -> impl Stream<Item = Result<Port>>
Convert this query into a stream executing the request.
Returns a TryStream
, which is a stream with each next
call returning a Result
.
Note that no requests are done until you start iterating.