pub struct WorkersRoute {
pub id: String,
pub pattern: String,
pub script: Option<String>,
}Expand description
Workers KV Route Routes are basic patterns used to enable or disable workers that match requests. https://api.cloudflare.com/#worker-routes-properties
Fields§
§id: StringNamespace identifier tag.
pattern: StringThe basic pattern that should map to the script
script: Option<String>Name of the script to apply when the route is matched. The route is skipped when this is blank/missing.
Trait Implementations§
Source§impl Clone for WorkersRoute
impl Clone for WorkersRoute
Source§fn clone(&self) -> WorkersRoute
fn clone(&self) -> WorkersRoute
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 WorkersRoute
impl Debug for WorkersRoute
Source§impl<'de> Deserialize<'de> for WorkersRoute
impl<'de> Deserialize<'de> for WorkersRoute
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 WorkersRoute
impl PartialEq for WorkersRoute
Source§impl Serialize for WorkersRoute
impl Serialize for WorkersRoute
impl ApiResultTraits for WorkersRoute
impl Eq for WorkersRoute
impl StructuralPartialEq for WorkersRoute
Auto Trait Implementations§
impl Freeze for WorkersRoute
impl RefUnwindSafe for WorkersRoute
impl Send for WorkersRoute
impl Sync for WorkersRoute
impl Unpin for WorkersRoute
impl UnwindSafe for WorkersRoute
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