pub struct ListNotificationsRequest {
pub user: String,
pub page_size: i32,
pub page_token: String,
pub filter: String,
}Expand description
Request message for ListNotifications
Fields§
§user: StringThe resource name of User. Format: users/{user_id}
page_size: i32The maximum number of items to return. If unspecified, at most 50 rows will be returned. The maximum value is 1024; values above 1024 will be coerced to 1024.
page_token: StringToken of the page to retrieve.
filter: String필터 표현식. 키-값 쌍을 ;으로 구분하며, 복수 값은 ,로 구분한다.
지원 필터 키:
- state=CREATED|ACKNOWLEDGED|EXPIRED — 알림 상태 필터
- type=INFO|ERROR — 알림 종류 필터
- exclude_event_type=Name1,Name2,… — 특정 event_type 제외
- symbol=A,B,C — 심볼 CSV 화이트리스트 필터. 비어있지 않으면 Notification.symbol이 목록 안에 있는 알림만 통과. symbol이 NULL(비어있음)인 알림은 제외됨.
자주 쓰는 event_type 이름: ReconcileOrphan, ReconcileDuplicate, ReconcileInvalidOrder, ReconcileQuantitySync, OffsetAdjustmentTimeStrategy, OffsetAdjustmentPositionStrategy, FundLimitExceeded, FundLimitWarning, HedgeError, System, Custom, QuickOrderError
예시:
- state=CREATED
- type=INFO
- state=CREATED;exclude_event_type=ReconcileOrphan,System
- state=CREATED;symbol=KR7252670005;exclude_event_type=ReconcileOrphan
Trait Implementations§
Source§impl Clone for ListNotificationsRequest
impl Clone for ListNotificationsRequest
Source§fn clone(&self) -> ListNotificationsRequest
fn clone(&self) -> ListNotificationsRequest
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ListNotificationsRequest
impl Debug for ListNotificationsRequest
Source§impl Default for ListNotificationsRequest
impl Default for ListNotificationsRequest
§impl<'de> Deserialize<'de> for ListNotificationsRequest
impl<'de> Deserialize<'de> for ListNotificationsRequest
§fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Message for ListNotificationsRequest
impl Message for ListNotificationsRequest
Source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
Returns the encoded length of the message without a length delimiter.
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,
Encodes the message to a buffer. Read more
Source§fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Encodes the message to a newly allocated buffer.
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,
Encodes the message with a length-delimiter to a buffer. Read more
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,
Encodes the message with a length-delimiter to a newly allocated buffer.
Source§fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Decodes an instance of the message from a buffer. Read more
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,
Decodes a length-delimited instance of the message from the buffer.
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,
Decodes an instance of the message from a buffer, and merges it into
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,
Decodes a length-delimited instance of the message from buffer, and
merges it into
self.Source§impl PartialEq for ListNotificationsRequest
impl PartialEq for ListNotificationsRequest
Source§fn eq(&self, other: &ListNotificationsRequest) -> bool
fn eq(&self, other: &ListNotificationsRequest) -> bool
Tests for
self and other values to be equal, and is used by ==.§impl Serialize for ListNotificationsRequest
impl Serialize for ListNotificationsRequest
impl StructuralPartialEq for ListNotificationsRequest
Auto Trait Implementations§
impl Freeze for ListNotificationsRequest
impl RefUnwindSafe for ListNotificationsRequest
impl Send for ListNotificationsRequest
impl Sync for ListNotificationsRequest
impl Unpin for ListNotificationsRequest
impl UnsafeUnpin for ListNotificationsRequest
impl UnwindSafe for ListNotificationsRequest
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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>
Wrap the input message
T in a tonic::Request