pub struct ListSourcesRequest {
pub identity: Option<SourceIdentity>,
pub status_filter: Option<i32>,
pub model_name_filter: Option<String>,
pub worker_rank_filter: Option<u32>,
pub min_training_step: Option<u64>,
pub min_updated_at: Option<i64>,
pub limit: Option<u32>,
}Fields§
§identity: Option<SourceIdentity>Filter by source identity — server computes mx_source_id. If not set, instances across all sources are returned.
status_filter: Option<i32>Filter by worker status. Not set = return workers in all statuses.
model_name_filter: Option<String>Lightweight discovery filters. Unlike identity, these do not require the caller to know every source-identity field and can therefore be applied before fetching MB-scale worker metadata.
worker_rank_filter: Option<u32>§min_training_step: Option<u64>§min_updated_at: Option<i64>§limit: Option<u32>Return newest workers first and cap the response. Zero/unset means no cap.
Implementations§
Source§impl ListSourcesRequest
impl ListSourcesRequest
Sourcepub fn status_filter(&self) -> SourceStatus
pub fn status_filter(&self) -> SourceStatus
Returns the enum value of status_filter, or the default if the field is unset or set to an invalid enum value.
Sourcepub fn set_status_filter(&mut self, value: SourceStatus)
pub fn set_status_filter(&mut self, value: SourceStatus)
Sets status_filter to the provided enum value.
Sourcepub fn model_name_filter(&self) -> &str
pub fn model_name_filter(&self) -> &str
Returns the value of model_name_filter, or the default value if model_name_filter is unset.
Sourcepub fn worker_rank_filter(&self) -> u32
pub fn worker_rank_filter(&self) -> u32
Returns the value of worker_rank_filter, or the default value if worker_rank_filter is unset.
Sourcepub fn min_training_step(&self) -> u64
pub fn min_training_step(&self) -> u64
Returns the value of min_training_step, or the default value if min_training_step is unset.
Sourcepub fn min_updated_at(&self) -> i64
pub fn min_updated_at(&self) -> i64
Returns the value of min_updated_at, or the default value if min_updated_at is unset.
Trait Implementations§
Source§impl Clone for ListSourcesRequest
impl Clone for ListSourcesRequest
Source§fn clone(&self) -> ListSourcesRequest
fn clone(&self) -> ListSourcesRequest
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for ListSourcesRequest
impl Debug for ListSourcesRequest
Source§impl Default for ListSourcesRequest
impl Default for ListSourcesRequest
Source§impl Message for ListSourcesRequest
impl Message for ListSourcesRequest
Source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
Source§fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
Source§fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Source§fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
Source§fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Source§fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Source§fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Source§fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self. Read moreSource§fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self.Source§impl PartialEq for ListSourcesRequest
impl PartialEq for ListSourcesRequest
impl StructuralPartialEq for ListSourcesRequest
Auto Trait Implementations§
impl Freeze for ListSourcesRequest
impl RefUnwindSafe for ListSourcesRequest
impl Send for ListSourcesRequest
impl Sync for ListSourcesRequest
impl Unpin for ListSourcesRequest
impl UnsafeUnpin for ListSourcesRequest
impl UnwindSafe for ListSourcesRequest
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> ErasedDestructor for Twhere
T: 'static,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T in a tonic::RequestSource§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T in a tonic::Request