pub struct TopicManagementResponse {
pub success_count: usize,
pub failure_count: usize,
pub errors: Vec<TopicManagementError>,
}Expand description
The response to
crate::messaging::MessagingClient::subscribe_to_topic or
crate::messaging::MessagingClient::unsubscribe_from_topic.
A single call can partially fail: some registration tokens may be
invalid or unregistered while others succeed. Mirrors the official Admin
SDKs’ TopicManagementResponse, which reports per-token errors rather
than failing the whole call when only some tokens are rejected.
Fields§
§success_count: usizeThe number of registration tokens that were successfully subscribed/unsubscribed.
failure_count: usizeThe number of registration tokens that failed.
errors: Vec<TopicManagementError>One entry per failed registration token, in the order they were passed in.
Trait Implementations§
Source§impl Clone for TopicManagementResponse
impl Clone for TopicManagementResponse
Source§fn clone(&self) -> TopicManagementResponse
fn clone(&self) -> TopicManagementResponse
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 moreAuto Trait Implementations§
impl Freeze for TopicManagementResponse
impl RefUnwindSafe for TopicManagementResponse
impl Send for TopicManagementResponse
impl Sync for TopicManagementResponse
impl Unpin for TopicManagementResponse
impl UnsafeUnpin for TopicManagementResponse
impl UnwindSafe for TopicManagementResponse
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§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