pub struct UrlRuleData {
pub action: ActionType,
pub comment: Option<String>,
pub created_at: Datetime,
pub created_by: Did,
pub pattern: PatternType,
pub reason: ReasonType,
pub updated_at: Datetime,
pub url: String,
}
Available on crate feature
namespace-toolsozone
only.Expand description
Input for creating a URL safety rule
Fields§
§action: ActionType
§comment: Option<String>
Optional comment about the decision
created_at: Datetime
Timestamp when the rule was created
created_by: Did
DID of the user added the rule.
pattern: PatternType
§reason: ReasonType
§updated_at: Datetime
Timestamp when the rule was last updated
url: String
The URL or domain to apply the rule to
Trait Implementations§
Source§impl Clone for UrlRuleData
impl Clone for UrlRuleData
Source§fn clone(&self) -> UrlRuleData
fn clone(&self) -> UrlRuleData
Returns a duplicate of the value. Read more
1.0.0 · 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 UrlRuleData
impl Debug for UrlRuleData
Source§impl<'de> Deserialize<'de> for UrlRuleData
impl<'de> Deserialize<'de> for UrlRuleData
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 UrlRuleData
impl PartialEq for UrlRuleData
Source§impl Serialize for UrlRuleData
impl Serialize for UrlRuleData
impl Eq for UrlRuleData
impl StructuralPartialEq for UrlRuleData
Auto Trait Implementations§
impl Freeze for UrlRuleData
impl RefUnwindSafe for UrlRuleData
impl Send for UrlRuleData
impl Sync for UrlRuleData
impl Unpin for UrlRuleData
impl UnwindSafe for UrlRuleData
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,
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.