pub struct SubscriptionPost {
pub application_id: Uuid,
pub dedicated_workers: Option<Vec<String>>,
pub description: Option<String>,
pub event_types: Vec<String>,
pub is_enabled: bool,
pub label_key: Option<String>,
pub label_value: Option<String>,
pub labels: Option<HashMap<String, String>>,
pub metadata: Option<HashMap<String, String>>,
pub target: SubscriptionPostTarget,
}Expand description
The SubscriptionPost the API declares.
Fields§
§application_id: Uuidapplication_id.
dedicated_workers: Option<Vec<String>>dedicated_workers.
description: Option<String>description.
event_types: Vec<String>event_types.
is_enabled: boolis_enabled.
label_key: Option<String>label_key: Kept for backward compatibility, you should use labels
label_value: Option<String>label_value: Kept for backward compatibility, you should use labels
labels: Option<HashMap<String, String>>labels.
metadata: Option<HashMap<String, String>>metadata.
target: SubscriptionPostTargettarget.
Trait Implementations§
Source§impl Clone for SubscriptionPost
impl Clone for SubscriptionPost
Source§fn clone(&self) -> SubscriptionPost
fn clone(&self) -> SubscriptionPost
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 SubscriptionPost
impl Debug for SubscriptionPost
Source§impl<'de> Deserialize<'de> for SubscriptionPost
impl<'de> Deserialize<'de> for SubscriptionPost
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 SubscriptionPost
impl RefUnwindSafe for SubscriptionPost
impl Send for SubscriptionPost
impl Sync for SubscriptionPost
impl Unpin for SubscriptionPost
impl UnsafeUnpin for SubscriptionPost
impl UnwindSafe for SubscriptionPost
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> 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