pub struct CreateWatch {
pub name: String,
pub owner_ref: String,
pub config: WatchConfig,
}Fields§
§name: StringUser-readable identifier
owner_ref: StringUnique identifier of this alerts owner. Will fire for watches with the same owner.
config: WatchConfigImplementations§
Source§impl CreateWatch
impl CreateWatch
pub fn try_into_watch(self, id: WatchId) -> Result<Watch, CreateWatchError>
Trait Implementations§
Source§impl Clone for CreateWatch
impl Clone for CreateWatch
Source§impl Debug for CreateWatch
impl Debug for CreateWatch
Source§impl<'de> Deserialize<'de> for CreateWatch
impl<'de> Deserialize<'de> for CreateWatch
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
impl Eq for CreateWatch
Source§impl From<Watch> for CreateWatch
impl From<Watch> for CreateWatch
Source§impl Hash for CreateWatch
impl Hash for CreateWatch
Source§impl JsonSchema for CreateWatch
impl JsonSchema for CreateWatch
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreSource§impl PartialEq for CreateWatch
impl PartialEq for CreateWatch
Source§impl Serialize for CreateWatch
impl Serialize for CreateWatch
impl StructuralPartialEq for CreateWatch
Auto Trait Implementations§
impl Freeze for CreateWatch
impl RefUnwindSafe for CreateWatch
impl Send for CreateWatch
impl Sync for CreateWatch
impl Unpin for CreateWatch
impl UnsafeUnpin for CreateWatch
impl UnwindSafe for CreateWatch
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<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
Compare self to
key and return true if they are equal.