pub struct ActivityIr {
pub enabled: bool,
pub max_comment_bytes: u32,
pub attachments: bool,
pub admin_roles: Vec<String>,
pub resources: Vec<ActivityResourceIr>,
}Expand description
Record-scoped collaboration settings and the entities that expose a timeline.
Fields§
§enabled: bool§max_comment_bytes: u32§attachments: bool§admin_roles: Vec<String>§resources: Vec<ActivityResourceIr>Implementations§
Source§impl ActivityIr
impl ActivityIr
pub fn is_disabled(&self) -> bool
pub fn resource_for_entity( &self, entity: &EntityId, ) -> Option<&ActivityResourceIr>
pub fn resource(&self, key: &str) -> Option<&ActivityResourceIr>
Trait Implementations§
Source§impl Clone for ActivityIr
impl Clone for ActivityIr
Source§impl Debug for ActivityIr
impl Debug for ActivityIr
Source§impl Default for ActivityIr
impl Default for ActivityIr
Source§impl<'de> Deserialize<'de> for ActivityIr
impl<'de> Deserialize<'de> for ActivityIr
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
impl Eq for ActivityIr
Source§impl PartialEq for ActivityIr
impl PartialEq for ActivityIr
Source§impl Serialize for ActivityIr
impl Serialize for ActivityIr
impl StructuralPartialEq for ActivityIr
Auto Trait Implementations§
impl Freeze for ActivityIr
impl RefUnwindSafe for ActivityIr
impl Send for ActivityIr
impl Sync for ActivityIr
impl Unpin for ActivityIr
impl UnsafeUnpin for ActivityIr
impl UnwindSafe for ActivityIr
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