pub struct NotificationsOptions {
pub hooks_format: i32,
pub hooks: Vec<i32>,
pub behind_proxy: bool,
pub hooks_http_urls: Vec<String>,
pub http_hook_timeout: Option<u64>,
pub hooks_http_proxy_headers: Vec<String>,
pub hooks_dir: Option<String>,
pub hooks_file: Option<String>,
pub amqp_hook_opts: Option<AmqpHooksOptions>,
pub kafka_hook_opts: Option<KafkaHookOptions>,
pub nats_hook_opts: Option<NatsHookOptions>,
}Fields§
§hooks_format: i32/ Notifications format. / / This format will be used in all messages about hooks.
default Format::Default in Rust
hooks: Vec<i32>/ Enabled hooks for notifications.
default set in Rust (pre-create, post-create, …)
behind_proxy: bool/ Use this option if you use rustus behind any proxy. Like Nginx or Traefik.
hooks_http_urls: Vec<String>/ List of URLS to send webhooks to.
http_hook_timeout: Option<u64>/ Timeout for all HTTP requests in seconds.
hooks_http_proxy_headers: Vec<String>List of headers to forward from client.
hooks_dir: Option<String>/ Directory for executable hook files.
hooks_file: Option<String>/ Executable file which must be called for notifying about upload status.
amqp_hook_opts: Option<AmqpHooksOptions>§kafka_hook_opts: Option<KafkaHookOptions>§nats_hook_opts: Option<NatsHookOptions>Implementations§
Source§impl NotificationsOptions
impl NotificationsOptions
Sourcepub fn hooks_format(&self) -> Format
pub fn hooks_format(&self) -> Format
Returns the enum value of hooks_format, or the default if the field is set to an invalid enum value.
Sourcepub fn set_hooks_format(&mut self, value: Format)
pub fn set_hooks_format(&mut self, value: Format)
Sets hooks_format to the provided enum value.
Sourcepub fn hooks(&self) -> FilterMap<Cloned<Iter<'_, i32>>, fn(i32) -> Option<Hook>>
pub fn hooks(&self) -> FilterMap<Cloned<Iter<'_, i32>>, fn(i32) -> Option<Hook>>
Returns an iterator which yields the valid enum values contained in hooks.
Sourcepub fn push_hooks(&mut self, value: Hook)
pub fn push_hooks(&mut self, value: Hook)
Appends the provided enum value to hooks.
Sourcepub fn http_hook_timeout(&self) -> u64
pub fn http_hook_timeout(&self) -> u64
Returns the value of http_hook_timeout, or the default value if http_hook_timeout is unset.
Sourcepub fn hooks_dir(&self) -> &str
pub fn hooks_dir(&self) -> &str
Returns the value of hooks_dir, or the default value if hooks_dir is unset.
Sourcepub fn hooks_file(&self) -> &str
pub fn hooks_file(&self) -> &str
Returns the value of hooks_file, or the default value if hooks_file is unset.
Trait Implementations§
Source§impl Clone for NotificationsOptions
impl Clone for NotificationsOptions
Source§fn clone(&self) -> NotificationsOptions
fn clone(&self) -> NotificationsOptions
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for NotificationsOptions
impl Debug for NotificationsOptions
Source§impl Default for NotificationsOptions
impl Default for NotificationsOptions
Source§impl<'de> Deserialize<'de> for NotificationsOptions
impl<'de> Deserialize<'de> for NotificationsOptions
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 Message for NotificationsOptions
impl Message for NotificationsOptions
Source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
Source§fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
Source§fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Source§fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
Source§fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Source§fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Source§fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Source§fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self. Read moreSource§fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self.Source§impl PartialEq for NotificationsOptions
impl PartialEq for NotificationsOptions
Source§impl Serialize for NotificationsOptions
impl Serialize for NotificationsOptions
impl StructuralPartialEq for NotificationsOptions
Auto Trait Implementations§
impl Freeze for NotificationsOptions
impl RefUnwindSafe for NotificationsOptions
impl Send for NotificationsOptions
impl Sync for NotificationsOptions
impl Unpin for NotificationsOptions
impl UnwindSafe for NotificationsOptions
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T in a tonic::Request