pub enum IncludeSubscribers {
False,
True,
Partial,
}Expand description
Whether each returned channel object should include a subscribers
field containing a list of the user IDs of its subscribers.
Client apps supporting organizations with many thousands of users
should not pass true, because the full subscriber matrix may be
several megabytes of data. The partial value, combined with the
subscriber_count and fetching subscribers for individual channels as
needed, is recommended to support client app features where channel
subscriber data is useful.
If a client passes partial for this parameter, the server may,
for some channels, return a subset of the channel’s subscribers
in the partial_subscribers field instead of the subscribers field,
which always contains the complete set of subscribers.
The server guarantees that it will always return a subscribers
field for channels with fewer than 250 total subscribers. When
returning a partial_subscribers field, the server guarantees
that all bot users and users active within the last 14 days will
be included. For other cases, the server may use its discretion
to determine which channels and users to include, balancing between
payload size and usefulness of the data provided to the client.
Passing true in an unauthenticated
request is an error.
Changes: The partial value is new in Zulip 11.0 (feature level 412).
Before Zulip 6.0 (feature level 149), this parameter was silently
ignored and processed as though it were false in unauthenticated
requests.
New in Zulip 2.1.0.
Variants§
Implementations§
Source§impl IncludeSubscribers
impl IncludeSubscribers
Sourcepub const fn new() -> Self
pub const fn new() -> Self
Creates a new IncludeSubscribers.
Trait Implementations§
Source§impl Clone for IncludeSubscribers
impl Clone for IncludeSubscribers
impl Copy for IncludeSubscribers
Source§impl Debug for IncludeSubscribers
impl Debug for IncludeSubscribers
Source§impl Default for IncludeSubscribers
impl Default for IncludeSubscribers
Source§impl<'de> Deserialize<'de> for IncludeSubscribers
impl<'de> Deserialize<'de> for IncludeSubscribers
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>,
Source§impl Display for IncludeSubscribers
impl Display for IncludeSubscribers
impl Eq for IncludeSubscribers
Source§impl PartialEq for IncludeSubscribers
impl PartialEq for IncludeSubscribers
Source§impl Serialize for IncludeSubscribers
impl Serialize for IncludeSubscribers
impl StructuralPartialEq for IncludeSubscribers
Auto Trait Implementations§
impl Freeze for IncludeSubscribers
impl RefUnwindSafe for IncludeSubscribers
impl Send for IncludeSubscribers
impl Sync for IncludeSubscribers
impl Unpin for IncludeSubscribers
impl UnsafeUnpin for IncludeSubscribers
impl UnwindSafe for IncludeSubscribers
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.