pub(crate) struct SubscribeParams {
cursor: Option<String>,
exclude_commit: Option<String>,
exclude_identity: Option<String>,
exclude_account: Option<String>,
}Expand description
What a subscribeRepos connection asked for.
Fields§
§cursor: Option<String>The last sequence number the consumer applied.
A string rather than an integer so that a cursor which is not one is
read as no cursor at all rather than rejected before the upgrade. It
reaches this server as a query parameter a human may well have typed,
and answering a WebSocket handshake with a 400 would leave them with
an HTTP status where they wanted a stream.
exclude_commit: Option<String>Drop #commit frames on this connection.
exclude_identity: Option<String>Drop #identity frames on this connection.
exclude_account: Option<String>Drop #account frames on this connection.
Implementations§
Source§impl SubscribeParams
impl SubscribeParams
Sourcefn cursor(&self) -> Option<i64>
fn cursor(&self) -> Option<i64>
The cursor as the lexicon’s integer, or None if there is not one.
Sourcefn exclusions(&self) -> Exclusions
fn exclusions(&self) -> Exclusions
Which message types this connection asked not to be sent.
Trait Implementations§
Source§impl Debug for SubscribeParams
impl Debug for SubscribeParams
Source§impl Default for SubscribeParams
impl Default for SubscribeParams
Source§fn default() -> SubscribeParams
fn default() -> SubscribeParams
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for SubscribeParamswhere
SubscribeParams: Default,
impl<'de> Deserialize<'de> for SubscribeParamswhere
SubscribeParams: Default,
Source§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
Auto Trait Implementations§
impl Freeze for SubscribeParams
impl RefUnwindSafe for SubscribeParams
impl Send for SubscribeParams
impl Sync for SubscribeParams
impl Unpin for SubscribeParams
impl UnsafeUnpin for SubscribeParams
impl UnwindSafe for SubscribeParams
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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