pub struct CreateEndpointIn {
pub description: Option<String>,
pub events: Option<Vec<String>>,
pub status: Option<String>,
pub url: Option<String>,
}Fields§
§description: Option<String>Description is a free-text label for the console. Optional, clipped to 1024 bytes.
events: Option<Vec<String>>Events are NATS subject patterns to subscribe to (e.g. "commerce.order.>"). An empty or omitted list means EVERY event on the platform bus. Max 64 patterns, each max 256 bytes.
status: Option<String>Status is "active" or "disabled". Empty defaults to active. A disabled endpoint receives no bus deliveries, but can still be exercised with POST /v1/webhook/{id}/test.
url: Option<String>URL is the https:// address each matching event is POSTed to. Required, max 2048 bytes; http:// and every other scheme is refused, because a webhook carries signed event data and must not travel in the clear.
Implementations§
Source§impl CreateEndpointIn
impl CreateEndpointIn
pub fn new() -> CreateEndpointIn
Trait Implementations§
Source§impl Clone for CreateEndpointIn
impl Clone for CreateEndpointIn
Source§fn clone(&self) -> CreateEndpointIn
fn clone(&self) -> CreateEndpointIn
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 CreateEndpointIn
impl Debug for CreateEndpointIn
Source§impl Default for CreateEndpointIn
impl Default for CreateEndpointIn
Source§fn default() -> CreateEndpointIn
fn default() -> CreateEndpointIn
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for CreateEndpointIn
impl<'de> Deserialize<'de> for CreateEndpointIn
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
Source§impl PartialEq for CreateEndpointIn
impl PartialEq for CreateEndpointIn
Source§impl Serialize for CreateEndpointIn
impl Serialize for CreateEndpointIn
impl StructuralPartialEq for CreateEndpointIn
Auto Trait Implementations§
impl Freeze for CreateEndpointIn
impl RefUnwindSafe for CreateEndpointIn
impl Send for CreateEndpointIn
impl Sync for CreateEndpointIn
impl Unpin for CreateEndpointIn
impl UnsafeUnpin for CreateEndpointIn
impl UnwindSafe for CreateEndpointIn
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