[−][src]Struct warpgrapher::engine::config::EndpointsFilter
Configuration item for endpoint filters. This allows configuration to control which of the
basic create, read, update, and delete (CRUD) operations are auto-generated for a Type
or a
Relationship
. If a filter boolean is set to true, the operation is generated. False
indicates that the operation should not be generated.
Examples
let ef = EndpointsFilter::new(true, true, true, true);
Implementations
impl EndpointsFilter
[src]
pub fn new(
read: bool,
create: bool,
update: bool,
delete: bool
) -> EndpointsFilter
[src]
read: bool,
create: bool,
update: bool,
delete: bool
) -> EndpointsFilter
Creates a new filter with the option to configure all endpoints
Examples
let ef = EndpointsFilter::new(true, true, false, false);
pub fn all() -> EndpointsFilter
[src]
Creates a new filter with all endpoints -- create, read, update, and delete
Examples
let ef = EndpointsFilter::all();
pub fn create(self) -> bool
[src]
Returns true if Warpgrapher should generate a create operation for the relationship
Examples
let ef = EndpointsFilter::all(); assert_eq!(true, ef.create());
pub fn delete(self) -> bool
[src]
Returns true if Warpgrapher should generate a delete operation for the relationship
Examples
let ef = EndpointsFilter::all(); assert_eq!(true, ef.delete());
pub fn none() -> EndpointsFilter
[src]
Creates a new filter with all endpoints -- create, read, update, and delete -- filtered out
Examples
let ef = EndpointsFilter::none();
pub fn read(self) -> bool
[src]
Returns true if Warpgrapher should generate a read operation for the relationship
Examples
let ef = EndpointsFilter::all(); assert_eq!(true, ef.read());
pub fn update(self) -> bool
[src]
Returns true if Warpgrapher should generate a update operation for the relationship
Examples
let ef = EndpointsFilter::all(); assert_eq!(true, ef.update());
Trait Implementations
impl Clone for EndpointsFilter
[src]
fn clone(&self) -> EndpointsFilter
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Copy for EndpointsFilter
[src]
impl Debug for EndpointsFilter
[src]
impl Default for EndpointsFilter
[src]
fn default() -> EndpointsFilter
[src]
impl<'de> Deserialize<'de> for EndpointsFilter
[src]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
impl Eq for EndpointsFilter
[src]
impl Hash for EndpointsFilter
[src]
fn hash<__H: Hasher>(&self, state: &mut __H)
[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl Ord for EndpointsFilter
[src]
fn cmp(&self, other: &EndpointsFilter) -> Ordering
[src]
#[must_use]fn max(self, other: Self) -> Self
1.21.0[src]
#[must_use]fn min(self, other: Self) -> Self
1.21.0[src]
#[must_use]fn clamp(self, min: Self, max: Self) -> Self
[src]
impl PartialEq<EndpointsFilter> for EndpointsFilter
[src]
fn eq(&self, other: &EndpointsFilter) -> bool
[src]
fn ne(&self, other: &EndpointsFilter) -> bool
[src]
impl PartialOrd<EndpointsFilter> for EndpointsFilter
[src]
fn partial_cmp(&self, other: &EndpointsFilter) -> Option<Ordering>
[src]
fn lt(&self, other: &EndpointsFilter) -> bool
[src]
fn le(&self, other: &EndpointsFilter) -> bool
[src]
fn gt(&self, other: &EndpointsFilter) -> bool
[src]
fn ge(&self, other: &EndpointsFilter) -> bool
[src]
impl Serialize for EndpointsFilter
[src]
fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error> where
__S: Serializer,
[src]
__S: Serializer,
impl StructuralEq for EndpointsFilter
[src]
impl StructuralPartialEq for EndpointsFilter
[src]
Auto Trait Implementations
impl RefUnwindSafe for EndpointsFilter
impl Send for EndpointsFilter
impl Sync for EndpointsFilter
impl Unpin for EndpointsFilter
impl UnwindSafe for EndpointsFilter
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
T: for<'de> Deserialize<'de>,
impl<Q, K> Equivalent<K> for Q where
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized,
[src]
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized,
pub fn equivalent(&self, key: &K) -> bool
[src]
impl<T> From<T> for T
[src]
impl<T> Instrument for T
[src]
fn instrument(self, span: Span) -> Instrumented<Self>
[src]
fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T> Instrument for T
[src]
fn instrument(self, span: Span) -> Instrumented<Self>
[src]
fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,